The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

WordPress sort/order help

  • # August 2, 2009 at 8:17 am

    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.

    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.

    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.

    # August 2, 2009 at 8:29 am

    This reply has been reported for inappropriate content.

    Why not use categories?

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed