[resolved] Page order not followed on menu (6 posts)

  1. SwMy
    Posted 7 years ago #

    The menu tabs don't follow the page order here: http://vedantadc.org/

    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.

  2. Barriss
    Posted 7 years ago #

    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 s.th., don't have the english dashboard)
    refresh, look and tell, if that did it or not... : )

  3. SwMy
    Posted 7 years ago #

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

  4. baseballbeginnings
    Posted 7 years ago #

    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.


  5. Chris_K
    Posted 7 years ago #

    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)

  6. SwMy
    Posted 7 years ago #

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





Topic Closed

This topic has been closed to new replies.

About this Topic