Too Many Posts Per Page. HELP!
-
Theme: https://www.wpexplorer.com/photo-wordpress-theme/
Problem: If you click on the link above and go to the preview, you will notice that the preview has 6 recent posts on the home screen. I want my home screen with 6 recent posts as well. However, this is what my home screen looks like. CLICK HERE TO VIEW
How can I get rid of some of the posts to minimize the number of posts to 6?
Here is what my index.php looks like:
get_header(); // Loads the header.php templateif (have_posts()) : ?>
<div id=”entries-wrap” class=”clearfix”>
<?php
$wpex_count=0;
// Loop through each post
while (have_posts()) : the_post();
$wpex_count++;
get_template_part( ‘content’, get_post_format() );
if( $wpex_count==3 ) { echo ‘<div class=”clear”></div>’; $wpex_count=0; }
endwhile; ?>
</div><!– entries-wrap –>
<?php
wpex_pagination(); // Paginate your posts
endif;
get_footer(); //get template footer ?>
- The topic ‘Too Many Posts Per Page. HELP!’ is closed to new replies.