• Resolved marcelu80

    (@marcelu80)


    Hi there,

    I run a corporate blog with a theme called pinnacle. It was only recently that I found out that The loop is hiding posts, one of every 4 to be precise. Here is a demo of my theme where you can see this loop in action (http://wpthemedesigner.com/demo/index.php?wptheme=Pinnacle+Theme). As you can see, it has one featured article and then two columns where the loop is called. The problem is that there is one hiden post between the las post on the left column and the first on the right.

    I’ve gone through it many times but any change made no difference. I know is a basic loop management issue, but I’m not skilled programmer… well I’m no programmer at all :-P. Any ideas? Thanks for your help.

    <div class="l division">

    <?php
    if (have_posts()) : $count = 0;
    while(have_posts()) : the_post();
    $count++;
    if ($count>4) break;
    ?>

    <!-- begin post -->
    <div class="post">
    <h2>"><?php the_title(); ?></h2>
    <p class="details"><?php the_time('F j, Y') ?>   |  <?php comments_popup_link(__('Leave a comment'), __('1 Comment'), __('% Comments')); ?></p>
    "><?php dp_attachment_image($post->ID, 'thumbnail', 'class="' . $post->post_title . '"'); ?>
    <?php the_excerpt(); ?>
    </div>
    <!-- end post -->

    <?php endwhile; endif; ?>

    </div>

    The right column is identical except for the layout.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘My theme loop hides posts’ is closed to new replies.