WordPress Plugin – My Page Order

My Page Order allows you to set the order of your pages with an easy to use drag and drop interface. Adds a widget with additional options for easy installation on widgetized themes.

Download here: My Page Order – WordPress.org Plugin Directory

Want to make a donation?

Plugin Info

My Page Order was released in 2006 and has been compatible with every version of WordPress from 1.5 to 2.8.5. It went through a lot of changes, but the effort needed to keep it backwards compatible was quite burdensome. As of version 2.8.6 of the plugin, it will only support WP 2.8 or above.

With the break in compatibility I’m able to take advantage of the new Widget API. It makes adding support for multiple widget instances a snap. Rewriting the widget code also allowed me to add widget options for nearly every single parameter normally available to the wp_list_pages template function. If you were being held back by the lack of options on the built in Pages widget then definitely check that out.

If you’d like to say thank you or make a donation please visit my Gifts and Donations page.

All of the old comments were moved to this page: My Page Order – Archived

Looking for fast, reliable and affordable web hosting? Try StableHost.

Read my StableHost review with the latest coupons

263 Replies to “WordPress Plugin – My Page Order”

  1. Hi,

    I’m using a theme that only works with pages instead of posts. I installed the My Page Order plugin, but it works with posts.

    Is there a way to make it work with pages, or move it to the pages function?


  2. Pages are not displaying. I can only get 5 pages into the menu. And now submenu pages are showing up on Main Menu. Is your plug-in doing this? The website I am having this problem on is oceanbaydemo.ofyourwebsite.com.


  3. Thanks! I tried this out and it works great for a “flat” site. I have a site that has almost 100 pages that we’d like to order, but many of them have a parent page. I’d like to order all of the pages at once (because we have a context where all pages, regardless of the parent page, are listed). Is there some sort of modification that can be done so that the reordering widget shows ALL pages, regardless of parent?

    Thanks again!

  4. I just added your plugin and set the order of my pages. All of them are not showing up in my navigation now. I have followed the instructions with the page widget and editing the template. Can’t figure it out. Any ideas would be appreciated,


  5. Hi,
    hi adjusted the page order in the backhand but those doesn’t be published in to the fronthand web site. I saved all but the order doesn’t work… please help me…

  6. Ghost Pages?? Hellow, I have deleted some pages but they still show in the “My Page Order Panel” (not in the site, just the admin panel) Any Ideas?

  7. LS,

    The plugin is basic, but functional. Thanks for that!

    Since WordPress 2.9 has a new Trash feature, pages in the trashbin still show up in My Page Order. To avoid this change:

    function mypageorder_pageQuery($parentID)
    global $wpdb;

    return $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = $parentID and post_type = ‘page’ ORDER BY menu_order ASC”);


    function mypageorder_pageQuery($parentID)
    global $wpdb;

    return $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = $parentID and post_type = ‘page’ AND post_status ‘trash’ ORDER BY menu_order ASC”);

    I just added ” AND post_status ‘trash'” tot the query. You can also do this for the mypageorder_getSubPages function. While you’re changing this function, you also might alter

    if($postCount[0] > 0)


    if($postCount[0] > 1)

    By doing this, pages with only 1 subpage will not show up in the dropdown.


    Laurens Meurs, Rotterdam

  8. My former comment is not displayed the way it should be. My alteration of the query ” AND post_status ‘trash'” contains a ‘not equal’ statement with a less than and greater than sign, which does not show on this page of HTML reasons.

    So change the modifications to ” AND post_status != ‘trash'”, does the same trick!

  9. i have instlled the plugin but could not think how this should be in working condition. .. can anyone tell me steps to place it on all pages and i want to use this for amazone liking


  10. Hello!

    Your plugin is great, thank you! The one thing I was having problems with was that my site is multi-language using the qTranslate plugin. Since this plugin stores multilanguage content in the regular page data, your plugin was displaying every post title twice, like


    I solved this by changing only two lines in your “mypageorder.php”:

    Line 96:
    echo “ID’ class=’lineitem’>$row->post_title”;
    echo “ID’ class=’lineitem’>” . __($row->post_title) . “”;

    Line 183:
    $subPageStr = $subPageStr.”ID’>$row->post_title”;
    $subPageStr = $subPageStr.”ID’>” . __($row->post_title) . “”;

    That is, all I did was use the WordPress gettext standard function “__()” for returning filtered page titles.

    If you would like to add this to your plugin a lot of users will be able to use your plugin together with qTranslate and other multi-language plugins.

    Thank you.

  11. Just wanted to request the adding of a CSS definition for selected class adding. It makes sense to have a place holder for where the page is being ordered. The default feels clunky so I added my own into the plugin but obviously breaks with updates.

    Here is my addition to the CSS:

    li.ui-selected {
    margin: 3px 0px;
    padding: 2px 5px 2px 5px;
    background-color: #FFFFFF;
    border:1px dashed #B2B2B2;

    I know the height is static but I didn’t want to rewrite adding hidden text in the blank li.

    Let me know your thoughts…

  12. I have run into a problem and I think the effect is related to your plugin. I hope you can advise.

    I have set the order of parent pages and that works fine. However, under one of my parent pages, I have 80 child pages. When I visit the WP “Edit Pages” screen, my parent pages are in the order I set, but I need the child pages to be in alphabetical order and they are not.

    If I go to “My Page Order” and under “Order Subpages” I choose the Parent Page that has 80 child pages, I see that they are listed there in the same way they are listed in the “Edit Pages” section. I can manually order these subpages into an alphabetical listing, but I will be adding more and more of these subpages to this parent page and would rather not have to go in and rearrange this everytime I add a page.

    Is this a bug?

    Is there a way to make subpages (child pages) default to an alphabetical listing?

  13. If “my page order” have a good performance in the sidebar navigation ?
    Anyone can show me an really example please, thank you!

  14. Hello,
    I have successfully installed and used your plugin on one of my sites. Now I’ve installed it in another and it isn’t rearranging the order.

    The only difference is that with the working one, I am not using widgets for my pages but in the non-working site I am.

    Any fix for this other than using non-widget pages?

  15. Nvm, once I used your widget (which I just found) everything works once more.

    Great plugin… very useful.

  16. Does not seem to work with WP 2.9.1 with Buddy Press plugin. I would like to rearrange order of tabs (I guess they are pages) on the landing page. Thanks.

  17. hey just installed it, i am using the widget called ‘my page order’ and its not displaying any of my pages but it shows the title. any help will be greatly appreciated. x

  18. sorry i meant showing only title of the widget. and under the widget is blank no pages or titles or anything. my site has been blocked from public and not sure how to remove it. my friend set it up

  19. Hi…

    I just installed your MyPO plugin. But it does not work as the result visible on the website. It works very well within wordpress (I use version 2.8.). I can organize the pages and sub pages. But it does not appear on the front page.

    I suppose the reason is, that there is something wrong in the theme on its own, because even I could not manually bring the pages into a new order by using the order numbers before installing your plugin.

    I thought, maybe I can overjump this lack of the theme and instead get it by your plugin working, but its not.

    See here: http://e-music.india-meets-classic.net (The pages are listed on top horizontal very chaotically.)

    I have seen on your FAQ site this question: “Why isn’t the order changing on my site? Answer: The change isn’t automatic. You need to modify your theme or widgets.”

    What do you mean with that “you need to modify” ? – Is there any specific code to implement?

    I am not a computer programmer… just following instructions to bring my blog working… my main focus is to have some nice (non commercial) radio shows monthly and deliver my users a well structured blog site.

    Hope you can give me a tip. I already contacted the programmer of the theme in December as there were some other problems in this theme (see my public notice here: http://bit.ly/buxaiX ), but nothing… Not any feedback till today. So I repair step by step the lacks on my own. Search function now is working well. The programmer had forgotten a whole search.php file.

    Waiting for your reply…. thank’s so fare giving attention. Warm regards from Europe/North Germany, Hamburg – ElJay.

    P.S.: I do not use on the sitebar a page list. But should I implement this code line, too in sitebar.php ?
    wp_list_pages(‘sort_column=menu_order&title_li=’); If yes, where should I set the code ? Dont want make a mistake and destroy everything, so better I ask instead just doing by “try & error”.

  20. Is the author responding to any questions here? Mine is not working. Trying to exclude pages with the widgets. Nothing is changing. So listed the included pages in the widget. Still nothing. Seems like a nice plugin if it worked.

  21. Sehr interessant. Kommt hier noch ein weiterer Beitrag? Möchte gern einiges mehr darüber erfahren. Könntest du mir per E-Mail weiterhelfen?

  22. I did these steps but nothing has been changed. And also there is no “wp_list_pages(‘sort_column=menu_order&title_li=’)” in sidebar template as it’s told below in point 4.

    1. Install plugin and activate it on the Plugins page
    2. Go to the “My Page Order” tab under Pages and specify your desired order for pages
    3. If you are using widgets then just make sure the “Page” widget is set to order by “Page order”. The plugin also installs it’s own widget with more options.
    4. If you aren’t using widgets, modify your sidebar template to use correct sort order: wp_list_pages(‘sort_column=menu_order&title_li=’);

  23. The plugin has been extremely useful to us as we were struggling re-ordering our men and women models pages…This is now piece of cake and all our models portfolios so easily managed!

  24. Ordering our pages has always been tricky but with this plugin we manage all our chlorella tablets, chlorella powder and chlorella capsules pages so much faster and easier. Many thanks!

  25. Hi pleace update the plugin on line 96 and 183. “.__($row->post_title).”
    some other plugin need this for translation. thanks ;).

  26. Hi I’ve been using this plugin for years and love it. I have one challenge. Not all my pages are displaying therefore I can’t order all of them and it’s messing up my menu’s.

    I am o.k with cut and pasting but that’s where my expertise ends so please give me some clear steps as to what I need to change in order to get all the pages listed.



  27. Hi! I made a Finnish translation of the plugin, but can’t find your contact information ANYWHERE on your site or plugin docs. If you can provide me with your email addy I’ll send you the files.

    Thx for the plugin!

  28. I just downloaded this plugin, have never been used, hopefully this plugin can help me in organizing the page in wordpress

  29. I am trying to use My Page Order plugin for a widget on my sidebar. I would like the subpages not to be listed but to have them pop up when you hover over the parent page. How can I achieve this?

  30. Hi,

    The myPageOrder plugin does not seem to work with WordPress 3.0-beta1. When I try to re order the pages, I get redirected to a page not found every time. Same happens if I try to click on “order subpages”.

    Hope you can get this fixed as I believe that 3.0 is due for release 1 May.

    Thanks for your amazing plugin, which should be part of the core of wordpress, it is that important.


  31. I have installed WPML multilingual support recently and find myself unable to access “My Page Order” with the message: “You do not have sufficient permissions to access this page.”

    Is there any way that this can be resolved?

    Thanks a lot.

  32. hi, very useful plugin. thank you! one question: the blog home page does not show up in the list of pages. how can i change the order of that? instead of making the blog page the home page, i want to rename it to blog and move it towards the end. any help is appreciated.

  33. Same problem as Catus Lee above. WPML and My Page Order doesn’t seem to work together. Would be awesome if this could be resolved. Your plugin is great, but I need to be able to use both. Appreciate any help you could give. Thanks! =)

Comments are closed.