Support » Themes and Templates » Page order not followed on menu

  • Resolved SwMy


    The menu tabs don’t follow the page order here:

    The home tab obviously should be first. It is a page, with number 1, and appears first on the pages list (site map) in the sidebar.

    Is it a matter of the code for the menu?

    <div id="menu">
    		<li class="<?php if ( is_home() ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"></a></li>
    		<?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>

    Your help would be very much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • hi. I assume you already did number your pages in the order you want them ? probably you use the pages-widget to display them ? then you just have to tell that widget that you want them ordered by number not by alphabet.
    dashboard left side : *click* appearance–> widgets
    than dashboard right side : *click* pages—> edit —> sort by numbers —> confirm (or, don’t have the english dashboard)
    refresh, look and tell, if that did it or not… : )

    Thanks for the reply. Yes, the widget orders the pages by number; and they appear correctly in the sidebar. But they don’t appear correctly in the tabbed menu bar at the top of the page…

    I am having the same problem…My top menu bar should have the pages, I have the pages in the order I want in my dashboard, but they are not appearing in the right order in my website.

    There are various arguments for wp_list_pages. You’ll want to make sure one of them is for listing pages by page order.

    (this is theme specific, so you’ll want to find that call in your current theme files. typically header.php)

    Yes, now it is solved. I changed the code above from





Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page order not followed on menu’ is closed to new replies.