Title: Include &quot;Menu Order&quot; in orderby attribute
Last modified: August 30, 2016

---

# Include "Menu Order" in orderby attribute

 *  Resolved [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/)
 * In the plugin documentation, it states:
 * > As for the “orderby” attribute you can filter posts by “title”, “date”, “author”,“
   > ID”.
 * It would be great if you could add “menu_order” to that list.
 * For example, in the Page Editor, you can set the order of a page in it’s current
   hierarchy. But there is no way (that I’ve found) to order the HTML sitemap this
   way. So, while my pages are organized by menu order in the back end, they are
   organized alphabetically on the front end. 🙁
 * [https://wordpress.org/plugins/simple-sitemap/](https://wordpress.org/plugins/simple-sitemap/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880726)
 * HA! I just tried it and it worked! Can you please add that verbiage to the Settings
   > Simple Sitemap screen? Thanks!
 *  [Christina](https://wordpress.org/support/users/geekmenina/)
 * (@geekmenina)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880950)
 * Thank you for posting this. It worked for me too. The documentation still doesn’t
   have this clearly stated. Plugin authors, please update your documentation!
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880951)
 * Thanks for the reminder. 🙂
 * I’ve updated the plugin (v1.83) to include the ‘menu_order’ attribute. There 
   is now also a direct link to the WordPress WP_Query page for a full list of available
   parameters.
 *  Thread Starter [brandon.w](https://wordpress.org/support/users/brandonw-1/)
 * (@brandonw-1)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880952)
 * SO MUCH WIN for getting to this. Thank you!
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880953)
 * You’re welcome Brandon! 🙂
 * And keep the suggestions and feedback coming! It’s a great way for me to continuously
   improve me plugins.
 *  [mkaiit](https://wordpress.org/support/users/mkaiit/)
 * (@mkaiit)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880960)
 * Hello Sir,
    Please I put
 *  [simple-sitemap types=”page” orderby=”menu_order” page_depth=”1″]
 * but it doesnt show my menu (which has sub menu items/pages) in order
 * it just show all pages but without any order
 * i use polylang and i tried this in English page and Arabic page, both show same
   results
 * please how can i edit this|?
 * not sure what page depth is but i tried with and without it
 * and it will only show items beneth each other, not like
    1 2 a. b. 3
 * format
 * please advice
 * thanks a LOT!
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880961)
 * The menu_order property refers to the ‘Order’ field on the page editor inside
   the ‘Page Attributes’ meta box.
 * See here for more detais: [https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters)
 *  [suz66](https://wordpress.org/support/users/suz66/)
 * (@suz66)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880965)
 * Hello Mr. Gwyer,
 * –> This code:
    [simple-sitemap show_label=”false” links=”true” page_depth=”1″
   orderby=”parent” orderby=”Menu_1_order” include=”voorwoord”]
 * –> has this result (11-7-’16, 15:05)
    [http://2015.terminalezorgmh.nl/index.php/sitemap/](http://2015.terminalezorgmh.nl/index.php/sitemap/)
   a sitemap in alphabetical order.
 * –> BUT:
    I want the sitemap shown as in the menu with hierarchy visible for humans.
   e.g.: first: ‘Voorwoord’, up to the ± latest: ‘Contact’ (or colofon).
 * Can you enlighten me?
 * Thanks anyway,
    Suz.
 *  [gautammurarka1](https://wordpress.org/support/users/gautammurarka1/)
 * (@gautammurarka1)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880966)
 * Add Pagination please
 *  [suz66](https://wordpress.org/support/users/suz66/)
 * (@suz66)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880967)
 * [@gautammurarka1](https://wordpress.org/support/users/gautammurarka1/): ???
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880968)
 * Try something like this:
 * [simple-sitemap types=”page” orderby=”menu_order” page_depth=”1″]
 * The code you showed specified two orderby attributes which were incorrect.
 *  [suz66](https://wordpress.org/support/users/suz66/)
 * (@suz66)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880969)
 * Thanx for response!
    Did it. It still doesn’t work as I have in mind.
 * The list still shows no hierarchy en (even) no more in alphabetical order.
 * [http://2015.terminalezorgmh.nl/index.php/sitemap/](http://2015.terminalezorgmh.nl/index.php/sitemap/)
 *  [suz66](https://wordpress.org/support/users/suz66/)
 * (@suz66)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880970)
 * In addition:
    See: [http://2015.terminalezorgmh.nl/index.php/sitemap/](http://2015.terminalezorgmh.nl/index.php/sitemap/)
   >>> 2x sitemap.
 * 2nd is alphabetical again. Because of “menu_1_order”. The template Vantage of
   SiteOrigin: more menu’s are possible. So this one is ‘called’ Menu_1.
 * (I wonder if there is a solution…)
 *  [gautammurarka1](https://wordpress.org/support/users/gautammurarka1/)
 * (@gautammurarka1)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880971)
 * Sir. Add pagination in the plugin. My Website has arround 30000 post and page
   will takes too long to load.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Include "Menu Order" in orderby attribute’ is closed to new replies.

 * ![](https://ps.w.org/simple-sitemap/assets/icon.svg?rev=1411764)
 * [Simple Sitemap - Create a Responsive HTML Sitemap](https://wordpress.org/plugins/simple-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-sitemap/reviews/)

 * 14 replies
 * 6 participants
 * Last reply from: [gautammurarka1](https://wordpress.org/support/users/gautammurarka1/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/include-menu-order-in-orderby-attribute/#post-6880971)
 * Status: resolved