WP Plugin to change sort order in archives

4 replies
I'm looking for a plugin that will display the posts on archive pages in alphabetical order. For example, when someone clicks on a category in the sidebar, I'd like the posts in that category to display in alphabetical order instead of the default reverse date order.

I need a plugin because I don't know enough to alter the php files. The "solutions" I've found so far are either incompatible with WP 3 or involve altering php files.

If anyone knows a good solution, I'd greatly appreciate it!
#archives #change #order #plugin #sort
  • Profile picture of the author SteveJohnson
    Here you go. Download the zip to your computer, then install thru Plugins > Add New page, then click the 'upload zip file' link. Tested on WordPress 3.4-alpha-19672.

    It's actually a pretty simple plugin - just intercepts the database query for archive pages and changes the sort column to the post title.

    Anyway, enjoy. Cooked up just for you.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[5604266].message }}
    • Profile picture of the author SKWeaver
      Steve,

      AWESOME! Thank you very much! I really appreciate it!
      {{ DiscussionBoard.errors[5605694].message }}
    • Profile picture of the author Nochek
      Originally Posted by SteveJohnson View Post

      Anyway, enjoy. Cooked up just for you.
      Heh, I was halfway through the second page of options settings when I saw your script.
      Signature
      Nochek Solutions Presents:
      The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
      {{ DiscussionBoard.errors[5606364].message }}
  • Profile picture of the author Peterw
    You can do this using a custom query. Using WordPress Custom Queries - WPFan.com
    {{ DiscussionBoard.errors[5608487].message }}

Trending Topics