Support » Fixing WordPress » Dynamic post sorting

  • I’m using Custom Query String plugin and it’s amazing.. But i would that users can sort posts in category.php template dynamically (eg sort by date ASC or sort by title DESC)..
    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am also looking to use a similar feature. I guess the link to ‘sort’ would need to produce a new database query, and just tell MySQL to sort the results by a different criteria. So I’m thinking it might be necessary to add another variable to the URL. So we have something like archive.php?cat=1&sort=date
    Then we could read in the desired sort criteria using $_GET() and somehow use it when setting up the WP Loop? Be grateful if anyone with more WP experience has any clearer ideas of how to do this. Thanks.

    Ajaxed way is better.. changing sort oder with no reload..
    WP guru need

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic post sorting’ is closed to new replies.