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.

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.

The plugin is available for download here: My Page Order - Wordpress.org Plugin Directory

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

40 Responses 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?

    Thanks,

  2. Hey some Screenshots (may be in the next Version) woold be nice

  3. not Screenshots, but real sample..!!

  4. 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.

    Regards,
    Stu

  5. 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!

  6. 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,

    Carson

  7. NM, problem solved

  8. 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…

  9. Great plugin thanks! Simple and works really well!

  10. 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?

  11. 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”);
    }

    into

    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)

    into

    if($postCount[0] > 1)

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

    Cheers!

    Laurens Meurs, Rotterdam

  12. 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!

  13. 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

    Thanks

  14. Thanks a lot! This plugin makes working with wordpress pages much more easier.

  15. 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

    PageNameInSwedishPageNameInEnglish

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

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

    Line 183:
    Changed
    $subPageStr = $subPageStr.”ID’>$row->post_title”;
    to
    $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.

  16. OK, WordPress of course screwed up my code… :(

    I added it to pastbin, here: http://pastebin.com/f2671a5b2

  17. 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;
    height:17px;
    }

    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…

  18. 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?

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

  20. 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?

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

    Great plugin… very useful.

Trackbacks/Pingbacks

  1. Facilita el uso de Wordpress a tus clientes | Diego Mattei Blog
  2. mmonet.info » ?????????????? WordPress????????
  3. mmonet.info » ?????????????? WordPress????????
  4. WordPress Plugin Releases for 11/28 « Weblog Tools Collection
  5. Wordpress Plugin – My Page Order??????? - vcdu.com
  6. 18 Plugin Wordpress Wajib Pilihan Aku
  7. ?? wordpress ?? My Page Order « ????
  8. 8 ???????? WordPress ??? ?????? ?? ?????????? | CMS-WP.ru
  9. blogs.uugrn.org » Blog Archive » Plugin-Updates 2009/12/08
  10. Wordpress Plugin – My Page Order | Geeky Weekly | WordPress News
  11. 3 Plugins para organizar links para paginas, categorias e blogroll | WPThemesPT.com
  12. Lorelei Web Design » 75 Best Wordpress Plugins That Make Bloggers Lives Easier
  13. Wordpress plugins to improve site navigation | H-Y-P-H-E-N
  14. The Power of WordPresjQuerys and : 25+ Useful Plugins & Tutorials | Umraz Ahmed | The Official site
  15. ?wordpress??????? | ???
  16. 15 Useful Wordpress Plugins « Nulls
  17. A major update of SWIFT to solve problems with thumbnail and file permissions | Swift Themes
  18. Nowa instalacja WP – testowa « Instalacja testowa
  19. Sofá Preto de Luxo « Capri Estofamento

Leave a Reply