Simple Page Ordering
Order your pages (and other hierarchical post types) with simple drag and drop right in the post list.
Order your pages, hierarchical custom post types, or custom post types with “page-attributes” with simple drag and drop right from the built in page list.
Simply drag and drop the page into the desired position. It’s that simple. No new admin menus pages, no clunky, bolted on user interfaces. Just drag and drop on the page or post-type screen.
The plug-in is “capabilities aware” – only users with the ability to edit others’ pages (editors and administrators) will be able to reorder content.
Integrated help is included: just click the “help” tab at the top right of the screen.
Please note that the plug-in is not compatible with Internet Explorer 7 and earlier, due to limitations within those browsers.
Contributing
We’d love to have you join in on development over on GitHub.
Christopher von Bronsart on
hey there!
i always missed this feature! unfortunately it breaks the quick edit feature in wordpress. it’s not possible anymore to enter something in the text fields. do you consider expanding this functionality to posts too? that would be awesome!
keep up the great!
cheers.chris
Jake Goldman on
Thanks for the bug catch! This should be fixed in a just released update. I’m not intending to add this to posts, since posts, by their nature, are ordered by their publication date. What would the use case be?
Nate Sees on
Thanks for this plugin, Jake. It’s exactly what I’ve been looking for. Anything special I need to do to make this work for custom post types? It’s currently working for Pages, but none of the custom post types I have defined (which are all heirarchical) have have the drag and drop enabled.
Michael Snow on
Same problem here. Installed on a WP 3.1.1 site with a custom hierarchical post type, and drag and drop is not showing up for it. Any tips?
Jake Goldman on
Are you certain it’s been set as hierarchical? Do you have custom columns?
Ryan on
I’m having the same issue. Is there a resolution to this? I have custom post types, and I can order them in the admin, but their order does not change on the site.
Jake Goldman on
You probably need to modify the part where you’re retrieving / showing the posts to sort them by menu_order.
Dean Oakley on
Great work! I got it working with custom posts.
Brent Pirolli on
Dean, how? I have custom post types too and the drag/drop is functional but the results don’t display that way on the site… they still show by date created.
Brent Pirolli on
Scratch that… found it.
http://wordpress.org/support/topic/plugin-simple-page-ordering-problem-with-the-query-or-plugin-dont-save-the-order
Just had to add:
&orderby=menu_order&order=ASC
into my post query… making it:
$slides = new WP_Query( ‘post_type=slide&posts_per_page=-1&orderby=menu_order&order=ASC’ );
Rafal on
How about a modifier key? The page becomes a child of the page it is over if shift is pressed while dropping…
Jake Goldman on
Interesting idea, but I’m afraid that wouldn’t be obvious. I’m exploring some more intuitive alternatives.
Carlos on
Hey Jake, cheers for such great plugin man, it works like a charm!
Love the idea of being able to see up to 100 pages ‘per page’, but it would be GREAT if you could save this setting in the DB so it always shows 100 (or whatever number you want) by default, instead of having to filter it. Also, what someone said re the ‘quick edit’ issue.
But still, very solid. Thanks again :)
Jake Goldman on
I thought Quick Edit was fixed in my latest release. Can you explain?
It’s supposed to save your preference for the filter as well… I’ll have to investigate that.
Carlos on
My apologies, I think the Quick Edit thing is working all fine (not sure why I said it wasn’t, sleep deprivation!)
However, the filter isn’t keeping the preference. I’m using WP3.1.2 and I’m not using and plugins that could clash with it.
Hope this helps man
Dennisz on
Hi there! Great plugin. Many thanx!
Having some problems though. Working nicely on our local development server using WP 3.1.3. But has ordering issues online (same configuration).
Does this plugin use server-dependent features somehow?
Jake Goldman on
No, but low end shared-hosting servers often aggressively time out AJAX requests (which this relies on). I had some very bad experiences with Bluehost and timed out AJAX requests (across a variety of plug-ins), for instance.
alex on
i am having problems too with the ordering…
i am getting this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 597642 bytes)
i do have a 200+ on the website and i am using wordpress version 3.0.4.
it seems that the ordering script is running all the pages everytime i try to move a page.
i tried to filter the number of pages that are displayed before proceeding with the ordering as i thought it may only run the script on the displayed pages but sadly that didnt work!
anyone has any suggestions?
Matteo on
Hi Jeke, great plugin, it works fine, thanks!
Do you think it would be possible to create such a plugin to sort the links (blogroll) always with drag and drop?
Jake Goldman on
Maybe, but it would need to be built from scratch. Not on my radar at the moment, unless a client wants to pay for it!
Ralph on
Hi _Jake, it’s a great plugin, but i can’t make it work! I think is my theme : Atmospheric Augmentation…im tryin hard to make it work, also tryn others plugin…but always the pages are in alphabetical order….i hope u can help! Best regards…
Sudip Biswas on
sorry to knock again. the problem is now solved.
this is really a rocking plugin.
Jan on
Hi Jake, awesome plugin!! Thank you very much!
Just what WordPress has been missing.
Perhaps you can submit it for making it part of the core!
One suggestion for improvement:
If the plugin would check for current_user_can(‘edit_pages’) instead of current_user_can(‘edit_others_pages’), it would also allow users who can only edit their own pages *(but not others pages) to use the plugin
I tried it out, and it works fine. Except .. when a user tries to sort someone elses pages, the cursor also changes to the drag-and-drop cursor, and the plugin will erroneously give the alert: “Items can only be repositioned within their current branch in the page tree / hierarchy …etc.”
I think could be mend if the plugin would also check whether the current user is the post_author. Do you think that is doable?
Jake Goldman on
The flaw in your logic is that when your changing the order of your page, you’re also necessarily changing the order of the pages around it. If you move your page to position 1, aren’t you moving the page with position 1 into position 2? It seems to me most use cases would demand that only a user capable of editing all pages should be able to reorder them.
Sandy Roe on
I upgraded to the 1.0 version of the simple-page-ordering plugin this morning, and I am getting an error message (
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/content/s/i/n/singer1966/html/Sandy-Roe/wp-content/plugins/simple-page-ordering/simple-page-ordering.php on line 54 I am still using WorkPress 3.1.3. (I was going to upgrade WordPress too, but now I can’t even get into the admin panel. I love this plugin! Any fixes?
Jake Goldman on
I wonder if you’re using an old version of PHP (older than 5.2, which WordPres 3.2 and newer require).
Barry on
Use case for post ordering: I often use a posts category for slides, features, etc – would be nice to be able to order these not by date.
Jake Goldman on
If you add ‘page-attributes’ support to your non-hierarchical post types, they will get ordering capabilities via a “Sort by Order” filter option on the edit page. You can add page-attributes to posts by adding the following to your theme’s functions.php file (or creating a simple plug-in):
add_action( 'init', 'add_page_attr_to_post' );
function add_page_attr_to_post() {
add_post_type_support( 'post', 'page-attributes' );
}
Adam on
Does doing this mean that Simple Page Ordering will work on those post-types, then? I’ve added the add_page_attr_to_post action you posted above to functions.php and the Post Edit pages now are showing Attributes boxes with Order fields in them, but I don’t have drag and drop on the listing page for the custom post type. I’m using Pagelines Pro (with the Pagelines Base child theme, which is where the functions.php I’m using is) as my theme, and drag and drop worked off the shelf for regular Pages as soon as I installed the plug-in. Love to hear your thoughts…
Oren on
HI!
Great Plugin!
Idea for Hirerchy:
1. Item droped will be by default the same level as the item above it.
2 add 2 javascript links per post <> which can move the post hirerchy level.
What do you think?
Jake Goldman on
What if you want to move a child page to the top of the child pages? Does it become a child of its parent?
Nevis1 on
Very slick plugin. Was confused at first on how to order pages. Did not realize that I had to drag the WHOLE page section up or down. Thanks for this. Much appreciated.
Anna on
Thank you SO much!
I tried another page organizer with a slippery drag ‘n’ drop [and try again and again] plus I hadda go back and forth to the WP “All Pages” dialog. This one is a piece o’ cake with everything together where it should be.
As soon as I can spare some cash, I’ll send some your way.
Thanks again, Jake!
Jake Goldman on
Thanks for the feedback!!
Cris on
Just want to say … GREAT IDEA ! and GREAT PLUGIN !
If you also solve the problem of changing parents then … this plugin will be the best!
Opher on
The plugin seems amazing but doesn’t work for me :(
The plugin UI seems to work, I can reorder the pages, but as soon as I refresh or exit and reenter the admin the order returns to what it was. Please advise!
Jake Goldman on
Sounds like your host is timing out the AJAX request. This is more likely if you have large numbers of pages at the same level.
Opher on
The problem was in fact a plugin collision with Custom Content Types Manager 0.9.3.3
I did some back and forth with its super nice dev and we got the problem solved! :)
More detail here:
http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=180
Jake Goldman on
I’m guessing your host may be timing out the AJAX request. Do you have a very large number of pages at the same depth?
cangpo on
Hi. Is there any way to make this plugin work for non-hierarchical custom posts? I really need it.
Jake Goldman on
It does, but the post type have must have “page-attributes” support. You can then click “Sort by Order” above the post list, and then set the menu order with drag and drop.
The Rub-Down on
I just installed this plug-in and was able to change my page order effortlessly. Thank you for building this plug-in, it has helped keep my blog looking the way I want it to look.
Dan Brownell
The Rub-Down