WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I display only the most recent post on my main page?

[Resolved] How do I display only the most recent post on my main page?

  • How do I display only the most recent post on my main page?

    At the moment, my posts list from newest at the top to oldest towards the bottom but i only want to display the last, most recent post on the front of my wordpress blog. Is this possible?

    Any help is much appreciated!
    -Jack

Viewing 3 replies - 1 through 3 (of 3 total)
  • On the main index page – index.php – you can add

    <?php query_posts(‘showposts=1’); ?>

    right before

    <?php while (have_posts()) : the_post(); ?>

    and only the most recent post will be displayed.

    Hi,

    You can use recent posts widget/plugin into your blog display the desired number of recent posts.

    Thanks,

    Shane G.

    Thanks kwbridge!

    That worked like a charm!

    Many thanks 🙂
    -Jack

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How do I display only the most recent post on my main page?’ is closed to new replies.
Skip to toolbar