Support » Themes and Templates » How do I rearrange the page order of top nav bar?

  • I am using WP v2.9.2, and using (a child of) the theme Simplicity.

    In the top menu bar this theme uses an unusual sequence order that I can’t seem to change. I have just two pages for now – “Home” and About”, and I want them in that order but they show on the live site with About first and then Home.

    With other wp themes I’ve used, I just change the order attribute “0” for Home and “1” for About, but this does not work on this theme.

    I tried fooling with the php code in the header.php file with no luck, but I really am just trial & error guessing with these changes.

    <!--segment of orig Simplicity header.php code -->
        <div id="topbar">
    <ul class="topmenu">
    <li><a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a></li>
    <?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>
    <li><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="rssfeed" /></a></li>

    If anyone has any experience with this issue or a way for me to change the order, I would appreciate a reply.

    Many thanks,


Viewing 1 replies (of 1 total)
  • You are currently sorting by id#. Try this:

    Replace this:
    <?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>

    with this:
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How do I rearrange the page order of top nav bar?’ is closed to new replies.