WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Andreas01 Menu (5 posts)

  1. tomdimmock
    Member
    Posted 7 years ago #

    Hi there,

    I am using the Andreas01 template for my New Blog-Site. There are some pages that I don't want to appear on the main menu. I had a look on the codex part of this site here it gave me the following...

      <?php wp_list_pages('exclude=17,38' ); ?>

    But I don't know where to put this... Please can somebody help? My blog is at http://blog.tomdimmock.co.uk

    Tom

  2. MichaelH
    Member
    Posted 7 years ago #

    Seems the header.php script refers to wp_list_pages.

  3. tomdimmock
    Member
    Posted 7 years ago #

    Thanks Michael,

    So I have

    <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    </ul>

    How do I exclude page ID 13.....or would i block its name "hidden"?

    Thanks
    Tom

    P.S. My Blog is now at http://www.tomdimmock.co.uk

  4. lleger
    Member
    Posted 7 years ago #

    <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=13'); ?>
    </ul>

  5. tomdimmock
    Member
    Posted 7 years ago #

    I have tried the above and it works!!!

    Thank you very much lleger and Micheal H

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.