Support » Fixing WordPress » Pages and Sub Pages
8 years, 7 months 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.
Try <?php wp_list_pages(‘depth=1&exclude=14,15’); ?>
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?