• Hi,

    In the loop, I have one category that I wish to skip, but I want 4 posts to display on the page. If I use

    <?php if(in_category('29')){
      continue;
    }

    The post counter goes down by 1 and 3 posts are displayed.

    I’ve tried adding this to the if statement:

    $WP_query->post_counter = $WP_query->post_counter-1;

    But it doesn’t work.

    Any ideas?

    Thanks,

    Mei

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Altering the post counter’ is closed to new replies.