Title: Sorting pages in menu
Last modified: August 18, 2016

---

# Sorting pages in menu

 *  [michuk](https://wordpress.org/support/users/michuk/)
 * (@michuk)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/)
 * Hello. I need to sort my pages in menu using priorities, not alphabetically. 
   What is the “best practices” way to do it?
    I’ve got a “Page Order” field for
   every page, but it doesn’t affect the menu. Best regards Borys Musielak jakilinux.
   org/wordpress

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274482)
 * In order to be able to use the Page Order field, you have to include the proper
   parameter in the [wp_list_pages](http://codex.wordpress.org/Template_Tags/wp_list_pages)
   template tag. e.g. `<?php wp_list_pages('sort_column=menu_order'); ?>`
 *  Thread Starter [michuk](https://wordpress.org/support/users/michuk/)
 * (@michuk)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274531)
 * Thank you. It works.
 *  [funkyme](https://wordpress.org/support/users/funkyme/)
 * (@funkyme)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274555)
 * This is nice I did so but I am wondering how to sort my pages when you added 
   an external link to your pages menu as I did?
    I don’t want this link to appear
   at the bottom of the list. Here’s the code:
    -  <?php wp_list_pages(‘sort_column=menu_order&exclude=15&title_li=’); ?>
    - [friends](http://www.risingconcepts.com/frapper/saskianation)
 * Thanks a lot for your help!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274556)
 * I assume you don’t want that external link at the top either… In this case I’d
   use the Redirectify plugin – [http://redalt.com/downloads/](http://redalt.com/downloads/)–
   and make that link a Page.
 *  [funkyme](https://wordpress.org/support/users/funkyme/)
 * (@funkyme)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274558)
 * Yes right, thanks a lot!
    I have installed the plugin but not sure about next…
   I assume I have to create a new page but then?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274561)
 * Yes, create a new Page and give it the title “friends” or whatever is you want
   to have there, then follow this:
    [http://wordpress.org/support/topic/47216#post-261061](http://wordpress.org/support/topic/47216#post-261061)
 *  [funkyme](https://wordpress.org/support/users/funkyme/)
 * (@funkyme)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274565)
 * Great, perfect!
    Thanks a lot for your help!

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

The topic ‘Sorting pages in menu’ is closed to new replies.

## Tags

 * [external link](https://wordpress.org/support/topic-tag/external-link/)
 * [priority](https://wordpress.org/support/topic-tag/priority/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [sorted](https://wordpress.org/support/topic-tag/sorted/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [funkyme](https://wordpress.org/support/users/funkyme/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/sorting-pages-in-menu/#post-274565)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
