WordPress.org

Support

Support » How-To and Troubleshooting » Toggle alphabetical and chronological?

Toggle alphabetical and chronological?

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • ?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

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

    Thanks again!
    Jonathan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Toggle alphabetical and chronological?’ is closed to new replies.