Order Posts Wordpress Plugin
I have been a big fan of Wordpress for a while now. The framework itself is clean, simple and fairly consistant (which is a nice change for PHP). But there are two things that frustrate me a little: The first being that in order to edit my theme (skin) I have to drill down through three folders, which gets really annoying when you work on themes a lot (like me for example). The second, is that there is no way to order articles other than by date or title. What I’ve always wished was that there was a way to order posts by context.
Well, I got sick of “waitingâ€? for a solution to raise its’ head, so I built my own; Simply named “Order Postsâ€?, this little plugin hijacks the “menu_orderâ€? database column (which is redundant for posts anyway) and allows you to move your articles up and down in a category without having to change your publish-dates or title.
There’s still quite a lot I want to do to this plugin, but I believe in releasing early, so what you can get today is version 0.1. Updates and features which I would like to add fairly promptly are:
- The ability to apply ordering to articles without having to move one first. (Currently you have to move at least one post within a category for the plugin to give each post an order-number).
- Clean up the UI and use up and down arrows for the buttons instead of + and -.
- Allow the publisher to drag each article into order.
I have put together a simple, one-page website for this plugin, but if you have any other suggestions, feel free to pop them in a comment against this post.
UPDATE: 2007-10-20
This plugin is no longer in development and does not work with the latest version of Wordpress. Sorry guys!
August 11th, 2007 at 11:49 pm
Hi! I’m one of your plugin’s greatest fans as it helps me order my posts backwards (last posts go to the bottom). There is just one tiny problem with regards to archive.php…
If you click on the categories’ “previous”, it would still show the very very first post on that category, no matter how many pages you go backwards. The calendar also doesn’t reflect the posts on the actual date, but again, the very first posts on the site. I think it has something to do with archives.php. Anyway, I’m looking forward to future updates. Great job! Thanks so much!
August 12th, 2007 at 11:34 pm
Is there a way to pick the order that the categories appear? ex: I want news to be first displayed, files to be second, and fun to be third. How do I do this?
August 14th, 2007 at 3:32 am
Hi
Been looking for a solution for this for a while. So simple to use the same field that is used for ordering Pages.
Worked fine in FireFox when I tested it. Then the next day while working in IE it didn’t work - the arrow up and down did nothing. Tried switching off all my other plugins, then started fiddling in the code - it seems that IE(7) is not returning the + and - - seems to be picking up an ID instead. So - I can administer in FF, but I can’t recommend this to my customers at present - as many just use IE.
Regarding the Drag & Drop - maybe save some time, and take a look at the MyCategoryOrder / MyPageOrder plguins -
http://www.geekyweekly.com/mycategoryorder
Thanks
August 19th, 2007 at 1:22 am
Hi nice plugin i really like it but as mentioned the up and down thing can be a little bit of a pain ach specially when the newest post is at the top and you want the latest at the bottom… if you or anyone else knows how i can make it just jump to the very bottom please let me know or as Jeff Walters suggested incorporate the drag and drop thing it’ be appreciated!
September 9th, 2007 at 7:20 pm
Hi, I like your plug-in’s menu and concept. There is a problem. The Previous post and next post don’t work anymore so any post not on the first page are only accessable from the sidebar category menu.
September 14th, 2007 at 8:52 pm
Hi! I received your email. I couldn’t figure out how the calendar should follow the order post because it’s still showing the old posts and not the ones posted on the real date.
I noticed that I don’t really have the code:
So I sort of tinkered with one line that’s closest to it and merged it with what you provided. I came out with this:
I hope I didn’t mess up anything.
September 14th, 2007 at 8:54 pm
geh. the codes don’t come out of the comments box.
what i meant was that i didn’t have this:
php while (have_posts()) : the_post();
so i merged what you gave me with one of the existing codes and came out with this:
<?php $offset = ($paged) ? (int) (get_option(’posts_per_page’) * ($paged - 1)) : 0; ?>
<php query_posts(”cat=”.$cat. “&orderby=menu_order&order=ASC&offset={$offset}”); while (have_posts()) : the_post(); ?>
October 9th, 2007 at 4:21 pm
I think you have a great plugin. However it does not work in 2.3. It give the error:
WordPress database error: [Table 'wordpress.wp_categories' doesn't exist]
SELECT * FROM wp_categories WHERE category_count > 0 ORDER BY cat_ID
Do you think you might be able to update it for 2.3?
October 19th, 2007 at 5:45 am
Same here.