Pages and Sub Pages (3 posts)

  1. nandorj78
    Posted 8 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:

    wp_list_pages('exclude=14,15' ); ?>

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

  2. IkBenMartijn
    Posted 8 years ago #

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

  3. nandorj78
    Posted 8 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