cat_ID; } foreach ( get_posts( "category=$cat_id" ) as $key => $p ) { if ( $p->ID == $post->ID ) break; } return ceil( ( $key+1 ) / get_option( 'posts_per_page' ) ); } ?>