Change post count for index/home page and the following pages in WP_Query loop
I am curious how I can throttle the number of posts to display between the home/index page and the following sequential pages generated by the WP_Query loop.
This is the code I am currently using to set the loop and post count:
<?php $my_query = new WP_Query('showposts=4'.'&paged='. $paged); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[$post->ID] = $post->ID; ?>
But I cant figure out how to change the post count once I am off of the home page. I have tried different variations of if/else is_front_page() but I have had no luck. Any help is appreciated.
- The topic ‘Change post count for index/home page and the following pages in WP_Query loop’ is closed to new replies.