• I’m new to WP. I have a website with a nav bar. I want a second nav bar. I want the links that appear on the nav bar to be exclusive to their nav bar. (Page X appears on one nav bar and page Y appears on the other.)

    Is there a way to do this?

    Thanks. In a real rush, if you have any ideas…

    R

Viewing 2 replies - 1 through 2 (of 2 total)
  • http://codex.wordpress.org/Template_Tags/wp_list_pages

    check the ‘include’ and ‘exclude’ parameters.

    basically, build one line with a list of page ids included, and then the other line with the same ids excluded.

    <ul class="navbar1">
      <?php wp_list_pages('include=5,9,23&title_li='); ?>
    </ul>
    <ul class="navbar2">
      <?php wp_list_pages('exclude=5,9,23&title_li='); ?>
    </ul>

    or check your existing nav bar code, and expand it according to the idea above.

    Thread Starter rwilliams1961

    (@rwilliams1961)

    Is there a way to achieve this end without hard coding ID #s? I’d like to be able to select which nav bar a page goes into at the page level or some other means that does not require hard coding it into the theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create Second Independent Nav Bar’ is closed to new replies.