WordPress.org

Support

Navigaton Bar

  • Just wondering, is there a way when creating new pages to have them NOT show in the nav bar? I remember seeing this somewhere, but couldn’t find it in docs or forums. Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • if you are using wp_list_pages() to make your list, change it to
    <?php wp_list_pages('exclude=#' ); ?>

    Change # to the page number you wish to exclude. you can exclude as many as you want by separating them with commas.

    hmmmm….looked in “includes” and elsewhere and did not find wp_list_pages()…

    ok…here’s the code by default in the header…

    <?php wp_list_pages(‘title_li=’); ?>

    …are you suggesting that this (‘exclude=#’) be placed after (‘title_li=’) or that it should maybe look like this…

    <?php wp_list_pages(‘title_li=”exclude=#’); ?>…

    well, I tried this…

    <?php wp_list_pages(‘title_li=’,’exclude=125′); ?>

    …no errors, but page still shows on nav bar…

    suggestions?

    <?php wp_list_pages('title_li=&exclude=125'); ?>

    try that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Navigaton Bar’ is closed to new replies.