[resolved] Excerpts showing twice? (3 posts)

  1. iamharlan
    Posted 6 years ago #

    Hi...I've created a page with a list of posts and excerpts for a category named news. It seems to be working, but I have this weird "bug" going on. On the page, it shows the title and excerpt for each post, then shows the excerpts from those posts again.

    Here is the link...

    And here is my code:

    <div class="newspage">
    <?php $temp_query = $wp_query; ?> 
    <?php query_posts('category_name=News&showposts=5'); ?> 
    <?php while (have_posts()) : the_post(); ?> 
      <div class="post" id="post-<?php the_ID(); ?>"> 
        <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> 
        <div class="newsposttext typeface-js" style="font-family: Helvetiker">
    <?php the_excerpt(); ?> </div>
    <?php endwhile; ?>
  2. iamharlan
    Posted 6 years ago #

    Oh...sorry.., obviously my question is...how do I get the duplicated excerpts to go away.

    Any help would be appreciated! Thanks!

  3. iamharlan
    Posted 6 years ago #

    Nevermind...the discrepancy was in my page code. It is solved.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.