WordPress Sort Category Posts By Title
May 23rd, 2006
I have written a plugin for those who have been asking for a quick way to sort posts in category view alphabetically by title, rather than the usual chronological order.
This is important if your readers don't care when things were posted.
This plugin was designed for WordPress 2.0.2.
Download it here: sort_category_posts_by_title.zip To install, simply extract to /wp-content/themes/plugins and Activate from inside the WordPress Plugins panel. Currently this is designed to only alphabetize posts when viewed by category and will not alphabetize posts on the front page, search results, archives, etc. It manipulates the query_vars->order_by and query_vars->order variables from inside classes.php so that sorting is done by title, in ascending order. But the code is simple enough, if you want to make it do that yourself.
Posted in: WordPress Plugins














May 25th, 2006 at 13:44 PM
[...] Sort Category Posts By Title,虽然我不知道在每一个分类下安字母顺序排列对于中文Blog有多大意义,不过好奇的可以尝试一下。 category post sort [...]
May 26th, 2006 at 14:42 PM
[...] Sort Category Posts by Title [...]
May 29th, 2006 at 15:17 PM
[...] Sort Categories by Title…カテゴリーの記事の一覧表示をタイトル順に [...]
May 30th, 2006 at 16:08 PM
Thks :) Did the trick for me - was using the date to sort ... archaic :(
June 7th, 2006 at 20:19 PM
Is it possible to modify this to sort by custom field instead of title?
June 7th, 2006 at 20:24 PM
Good question. Yes, it is possible. Just change line 15 from 'title' to whatever column you want to sort by.
June 8th, 2006 at 01:30 AM
Forgive my ignorance... I searched wordpress support but I can't tell... if it's a custom field do I need to just put the "key" name or is there something additional to add?
August 3rd, 2006 at 18:09 PM
Great idea for a plugin. Of course, a question: How would I set about listing _some_ categories alphabetically (eg book reviews, by author) and other categories (eg event listings and news items) by date? There's always someone, huh?
August 4th, 2006 at 13:45 PM
I have had two requests for this added functionality, so I will provide it in a new version coming soon. I'll keep everyone posted as soon as the update is released.
August 10th, 2006 at 12:50 PM
make that a third request! thanks mike
August 24th, 2006 at 11:34 AM
hi, what about listing only the post title on category view. or post with date and a little excerpt? I hope someone can provide this. thanks a lot.
September 17th, 2006 at 08:40 AM
Hi, I downloaded and activated your plug-in but I can not find the extra function conerning sort in alphabetic order on my dashboard. rgds Klaus
October 14th, 2006 at 07:45 AM
[...] WordPress Sort Category Posts By Title edit / delete [...]
October 26th, 2006 at 11:31 AM
Very handy plugin For some reason though for my site once I use your plugin the final item once is shown outside the loop. It's hard to explain this but once a new post is added after the plugin is activated the if this is the final item alphabetically then it is displayed outside my "storycontent" DIV which should surround the entire loop. Any ideas?
October 29th, 2006 at 11:22 AM
[...] Les billets sont maintenat triés par titre dans l’affichage des pages par catégories. (plugin Sort Categories by Title) [...]
November 16th, 2006 at 18:45 PM
[...] WordPress Sort Category Posts By Title Sort Category Posts By Title,虽然我不知道在每一个分类下安字母顺序排列对于中文Blog有多大意义,不过好奇的可以尝试一下。 (tags: wordpress) 归类于: Del.icio.us Tags : No Tags 相关 Tags : No Tags Previous post in Del.icio.us:links for 2006-10-13 Next post in Del.icio.us:links for 2006-10-22 相关文章 [...]
December 17th, 2006 at 19:58 PM
I find that if one title happens to have a space at the beginning (from copying and pasting a title without noticing) that the whole list does not get sorted out correctly. Is there a way to make it ignore spaces at the beginning of the title? thanks :)
January 3rd, 2007 at 16:10 PM
Hi Mike, will it possible to modify the WP-DB class so that it can actually join another table and sort the posts plus comments all together?
January 23rd, 2007 at 00:12 AM
It works great for me in Mundo-CPC, thank you very much!!! :D (I hope it will run ok under WP 2.1). I´ll try to make a donation ;).
April 11th, 2007 at 16:23 PM
Thanx for developing and sharing this plugin, this is what I was looking for. :)
June 3rd, 2007 at 00:01 AM
Have been trying to make it use custom field values as sort criteria on WP2.2 by changing the 'title' to 'parag' which is the name of the custom field. Did not work for me :-(
June 18th, 2007 at 15:47 PM
[...] WordPress Sort Category Posts By Title __________________ RapidShare URL K
July 11th, 2007 at 04:46 AM
[...] Visit [...]
July 12th, 2007 at 18:53 PM
Great pluGin - I am new to wordpress and this was a big help.
July 12th, 2007 at 18:53 PM
Great plugin!
July 21st, 2007 at 15:07 PM
Thanks for making this into a plugin!
September 7th, 2007 at 20:19 PM
Hi! I just installed the plugin and clicked for the results, but it continues to sor my categories by expert. My inex.php code for posts is:
Do you think this is the reasin it goes on dispaying the categories in excperts? If not, what can it be? I am using Wordpress ver. 2.2 Thank you!July 26th, 2007 at 18:21 PM
Awesome. Would be nice to have a feature that let the user chose: Sort by: Title | Date | Custom Field... I'm waiting :)
July 30th, 2007 at 01:49 AM
just what i needed. thanks for this plugin I hope there's an update to sort search results too!
September 2nd, 2007 at 23:04 PM
Is this compatible with WP 2.1 ? :) Thanks!
Post new comment