WordPress.org

Ready to get started?Download WordPress

Forums

Pages and Sub Pages (3 posts)

  1. nandorj78
    Member
    Posted 5 years ago #

    I'm doing a site for a friend who's a professional musician.
    I'm currently stuck on the pages list.
    One page on the list is 'Discography' and its subpages will be 'as a producer' and 'as a musician'.

    The problem I'm having is that the subpages are showing on the page list in the 'header' part. How do I exclude the sub pages from showing in the list? I've tried the following code:

    <ul>
    <?php
    wp_list_pages('exclude=14,15' ); ?>
    </ul>

    It removed the subpages but it also messed up the page list from showing properly.

  2. IkBenMartijn
    Member
    Posted 5 years ago #

    Try <?php wp_list_pages('depth=1&exclude=14,15'); ?>

  3. nandorj78
    Member
    Posted 5 years ago #

    it didn't work, but I managed to do it. thanks a lot anyway.

    One more question, is there a way to show the sub pages of a page on a drop down menu?

Topic Closed

This topic has been closed to new replies.

About this Topic