WordPress.org

Ready to get started?Download WordPress

Forums

How do I rearrange the page order of top nav bar? (2 posts)

  1. robmack
    Member
    Posted 4 years ago #

    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>
    
    </ul>
    
    </div>

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

    Many thanks,

    --Rob

  2. jrav001
    Member
    Posted 4 years ago #

    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='); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic