WordPress.org

Ready to get started?Download WordPress

Forums

Article order (4 posts)

  1. trusco1973
    Member
    Posted 3 years ago #

    Is possible to order articles? When I add a new article it's on the top of the list. If I have to put at the last position, how caa I do?
    Thanks

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You would need to add a custom query to the relevant template file in your theme to reverse the post order. Something like:

    <?php query_posts($query_string.'orderby=date&&order=ASC');?>

    http://codex.wordpress.org/Function_Reference/query_posts

  3. trusco1973
    Member
    Posted 3 years ago #

    Esmi, thanks for your speed answer.
    I tried to search something like your string (?php query_posts($query_string.'orderby=date&&order=ASC');?) but I didn't find.
    Do you think I shoud study wp-app.php file?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Use the link I gave above.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags