WordPress.org

Ready to get started?Download WordPress

Forums

Toggle alphabetical and chronological? (3 posts)

  1. bedspring
    Member
    Posted 8 years ago #

    Is it possible to have a link that would toggle between alphabetical and chronological sorting?
    So that if a user knows the title of an article they could switch to alphabetical sorting, and then switch back to chronological later on.

    Does that make sense? I've been searching around and haven't found anything, but I can't be the only one who wants this functionality.

  2. Kafkaesqui

    Posted 8 years ago #

    ?orderby=title&order=ASC

    Having that at the end of ones url sorts posts by title ASCending (a-z). Other options:

    order=DESC

    orderby=date
    orderby=modified (since 2.0)
    orderby=author

  3. bedspring
    Member
    Posted 8 years ago #

    Awesome, thank you, I feel like a doofus since it was so easy!

    Thanks again!
    Jonathan

Topic Closed

This topic has been closed to new replies.

About this Topic