Home Forums Air WordPress Theme invert date order in archive

This topic contains 2 replies, has 2 voices, and was last updated by  neferet 2 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17469

    neferet
    Participant

    Dear support,
    Is there a way to invert the date order in the Archive page? I want the posts to be shown from the oldest to the newest.
    Thanks!

    #17481

    BWSM
    Keymaster

    Hi,

    Please edit the template file(Appearance > Editor):
    /themes/art-theme/template/archive/loop.php, find lin4:
    query_posts( array( 'paged' => $paged ) );
    update as:
    query_posts( array( 'paged' => $paged, 'orderby' => 'date', 'order' => 'ASC' ));

    Regards!
    Bwsm – uiueux.comTwitterFacebook

    #17489

    neferet
    Participant

    Thanks a million!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘invert date order in archive’ is closed to new replies.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!