Excluding Pages in Nav Bar (2 posts)

  1. PassedUp
    Posted 9 years ago #

    I know the code to exclude pages but when I put the code in my whole site disapears. this is what the code looks like without the exclude.

    <div id="header">

    <h1>" href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></h1>

    <div id="menu">

      <li <?php if (is_home()) { ?>id="current" <?php } ?>>">Home
      <?php wp_list_pages ('sort_column=menu_order&title_li='); ?>


  2. Andrew Ozz
    WordPress Dev
    Posted 9 years ago #

    That looks right... And you are adding the exclude like that?
    <?php wp_list_pages ('exclude=17,38&sort_column=menu_order&title_li='); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic