Smart Sort Wordpress Plugin – Sort posts by Custom Field
FINAL UPDATE: The official page for WP Smart Sort has moved here.
This plugin allows you to place a sort bar, with options to sort the list of posts by any custom field. You can place the sort bar above or below a list of posts in a category or archive or anywhere in your template.
Simple place <?php placesort() ?> anywhere in your template.
Options are set in the admin panel as to which custom fields to display in the sort bar.
This was originally coded by smartalien on scriptlance. He no longer develops it and I purchased the code from him. It works but I put it out there to be used and improved by the wordpress community.
There may be bugs; if you can’t fix them point them out, if you can send us the code fix.
This project is hosted with Google Code here
Latest Version 1.0:
Enjoy it.
To Do list:
- More pretty permalink URL
- CSS/HTML output options to customize display of sort bar
- Fix compatability with other plugins
- Display on main index page (currently only seems to be displaying on category and archive pages
- Tagging support
Version History:
1.0
- First Release
- A bit “buggey” but it works
- Waiting feedback on requests, issues and ideas
- Planned rapid deployment of 1.1 to tackle known bugs








January 8th, 2008
this what i’m looking for….thx bro for released it
January 9th, 2008
Hey this is really great! I’ve been looking for something I can sort newest to oldest or oldest to newest.
I am having a problem getting mine to show however. No category selector is showing up even though I have configured the options and have put the code snippit in my sidebar.
Is there an live example I can see?
Here’s mine: http://www.williambay.com/thailand
Only thing I can think of is that I’m running 2.1.2.
Thanks for help in advance.
William Bay
January 10th, 2008
Hi William,
2.1.2 shouldn’t be a problem I’m running the same version.
Just to clarify you wouldn’t see a category “selector”, after placing the < ?php placesort ?> in your template it would show a link Category a-z which allows you to sort the page you’re viewing based on the name of the categories associated with each post. It seems that the sort bar doesn’t show in the sidebar will add that to the bug fix list for the next version.
I’ve placed a working version on my site now, you can see it on any of the category pages.
Its probably best to place the code snippet in your Main Index, Category and Archive templates around where is says < ?php while (have_posts()) : the_post(); ?> I’ve placed it above that line.
February 2nd, 2008
[...] Visit [...]
March 11th, 2008
Oh thanks for this plugin. Greatly..
March 25th, 2008
Is it possible to make this work with Tags instead of Categories?
Thanks
Stev
March 27th, 2008
Hi Stev,
Nice idea, will add it to the todo list, waiting for a stable wordpress 2.5 to start reworking this plugin.
June 30th, 2008
How do I get this plugin to work???
Is it compatible with 2.5.1??
Does it work on the main index?
Is there an alternative out there?
- Thanks
September 27th, 2008
Does not work for me, I’m using WP 2.6.2
October 13th, 2008
Neither for me, also WP 2.6.2 locally, with all themes.
Any chance for an update?
November 24th, 2008
The project is hosted on Google Code, but it seems as if no one is contributing to it. Furthermore, it is unclear whether anyone can *join* the project, as Dyasonhat would have to add you manually.
It is a shame, as this seems like a promising plugin!