Grid view showing a rogue 10th post

  • Unknown's avatar

    Hello,

    Sorry, I am a complete noob and my site is driving me crazy. I am using a WPExplorer template ‘Photo’ which I really like, but on the blog section of my site, the blog thumbnails come up in groups of ten, meaning the last post just sits there looking pants. http://www.fergusford.com/blog if you want to see what I mean.

    I know that the grid is created with the ‘if (have posts.php)’, but no matter what number I change the $wpexcount to, I always end up with the odd post at the bottom!

    get_header(); // Loads the header.php template

    if (have_posts()) : ?>
    <div id=”entries-wrap” class=”clearfix”>
    <?php
    $wpex_count=1;
    // Loop through each post
    while (have_posts()) : the_post();
    $wpex_count++;
    get_template_part( ‘content’, get_post_format() );
    if( $wpex_count==1) { echo ‘<div class=”clear”></div>’; $wpex_count=0; }
    endwhile;
    ?>
    </div><!– entries-wrap –>
    <?php
    wpex_pagination(); // Paginate your posts
    endif;
    get_footer(); //get template footer ?>

    Any help would be massively appreciated :)

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The blog you specified at fergusford.com does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Grid view showing a rogue 10th post’ is closed to new replies.