Forums

latest 2 posts in reverse (order+post_per_page=earliest 2) (1 post)

  1. mikegoodstadt
    Member
    Posted 1 year ago #

    Hi,
    I want to edit or filter with a function, the archives page.
    I want it to show only the newest 2 posts in reverse order.

    I have tried "&order=ASC".
    This reverses the list from the default reverse-chronological.
    Now, as would be expected, the oldest posts are first.
    However I want to use "posts_per_page=2".
    Ans of course this displays only the 2 OLDEST posts.

    How can I show only the 2 NEWEST posts but in reverse order?

    Many thanks,
    Mike Goodstadt

Topic Closed

This topic has been closed to new replies.

About this Topic