WordPress.org

Ready to get started?Download WordPress

Forums

Excluding Pages in Nav Bar (2 posts)

  1. PassedUp
    Member
    Posted 7 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>

    <div id="menu">

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

    </div>

  2. Andrew Ozz
    WordPress Dev
    Posted 7 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

Tags