Support » Fixing WordPress » 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • In order to be able to use the Page Order field, you have to include the proper parameter in the wp_list_pages template tag. e.g. <?php wp_list_pages('sort_column=menu_order'); ?>

    Thank you. It works.

    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
  • Thanks a lot for your help!

I assume you don’t want that external link at the top either… In this case I’d use the Redirectify plugin – – and make that link a Page.

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?

Yes, create a new Page and give it the title “friends” or whatever is you want to have there, then follow this:

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.