Wordpress order/sort problem

Posted by Spencer on Stack Overflow See other posts from Stack Overflow or by Spencer
Published on 2009-08-02T12:29:09Z Indexed on 2010/04/04 4:03 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

Hi,

The Problem: I would like to sort my posts based on custom fields, when the user clicks on a link. I don't know if there is a parameter that can be passed via url to reorder posts.

Comparison: I would like it to work similar to how you can sort songs in iTunes. The user simply clicks the "Artist" button and the songs are reorder alphabetically by artist's name.

Example: The custom field could be the location where I was when I wrote the post. "Location = home" or "Location = office" etc. When the user click a links the page is reload with the posts reordered. Posts from home before ones from the office.

Thanks for the help.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about order