Support » Themes and Templates » Excerpts showing twice?

  • Resolved iamharlan

    (@iamharlan)


    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>
    
      </div>
    <?php endwhile; ?>
    
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpts showing twice?’ is closed to new replies.