WordPress.org

Forums

[resolved] Showing the latest 5 posts on author.php (3 posts)

  1. zompus
    Member
    Posted 7 years ago #

    Hello,

    On the author.php page i'm trying to show the latest 5 posts by the author and only the latest 5 posts, no more!

    Any clues?

  2. zompus
    Member
    Posted 7 years ago #

    Gah, silly me. I worked it out moments after making this thread.

    <?php query_posts($query_string . '&posts_per_page=5'); ?>

    Putting that, the line above the "<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>" line does the trick. :-)

  3. bcc
    Member
    Posted 7 years ago #

    Exactly what i was looking, for good effort young man

Topic Closed

This topic has been closed to new replies.

About this Topic