WordPress.org

Forums

Too Many Posts Per Page. HELP! (3 posts)

  1. Parm Masuta
    Member
    Posted 1 year ago #

    Theme: http://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 template

    if (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 ?>

  2. Parm Masuta
    Member
    Posted 1 year ago #

    BUMP!

  3. Parm Masuta
    Member
    Posted 1 year ago #

    May anyone help?

Topic Closed

This topic has been closed to new replies.

About this Topic