Title: Display First Post Only
Last modified: August 19, 2016

---

# Display First Post Only

 *  [gfradio](https://wordpress.org/support/users/gfradio/)
 * (@gfradio)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/display-first-post-only/)
 * Im using this plugin called “Display Last Posts” heres a link
 * [http://wordpress.org/extend/plugins/display-last-posts/](http://wordpress.org/extend/plugins/display-last-posts/)
 * now I have it displaying only the lastest post but it displays it twice. WHat
   can i do to fix this here is a my post code. ITs very simple just to get this
   work then i will add to it.
 *     ```
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
        <?php lastPosts('',''); ?>
   
        <?php endwhile; else: ?>
   
        <!-- The very first "if" tested to see if there were any Posts to -->
        <!-- display.  This "else" part tells what do if there weren't any. -->
        <p>Sorry, no posts matched your criteria.</p>
   
        <!-- REALLY stop The Loop. -->
        <?php endif; ?>
       ```
   

The topic ‘Display First Post Only’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [gfradio](https://wordpress.org/support/users/gfradio/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/display-first-post-only/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
