• I am attempting to create a page that lists posts under a certain category. I have succeeded in using The Loop to accomplish this and added the php file using the WP Include plugin.

    However, I am now faced with an issue that after my code below is looped and ends, it then displays all the full posts under the listings.

    I cannot find where this is being called and why its doing this. Any help would be appreciated.

    The link below is to the page in question..

    http://www.tornadoeskick.com/logs/2009-chases

    <?php query_posts($query_string . '&cat=26'); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <table width="800" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="600" align="left" valign="bottom">  <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Click here to see <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></td>
            <td width="200" align="right" valign="bottom"> <h3><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h3></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="110" align="left" valign="top"><a href="<?php the_permalink() ?>" rel="bookmark" title="Click here to see <?php the_title_attribute(); ?>"><img class="thumbnail" src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="" width="105" height="75"/></a></td>
        <td width="690" valign="top"><?php the_excerpt(); ?> </td>
      </tr>
    </table>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Double Posts in The Loop Template Files’ is closed to new replies.