Support » Fixing WordPress » Post pagination broken after query_post modification

  • Here is the scenario:

    1) I have a homepage.php that I use as a static page for my Front page.
    2) I have a blog page that use the Default Template(index.php) as my static page for my Posts page.

    I used two categories in my homepage.php that I want to exclude from blog page. So, I did this:

    $catIDs = get_cat_ID( $cat_name='Featured' );
    	$catIDs .= ',-' . get_cat_ID( $cat_name='Services' );
    	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    		if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<div <?php post_class(); ?>>

    The content from those two categories don’t show up on my blog page, but you can still navigate from post pagination.

    Any tip here?

  • The topic ‘Post pagination broken after query_post modification’ is closed to new replies.