If (this page has subpages) then
-
I have some pages that have subpages and I want to show links to the suppages on those in a (good looking) div. BUT(!) I don’t want the div to show on those pages that doesn’t have subpages.
I would like to think that it could be easily done if there just were a conditional tag like “is_parent”.
Something like:
<?php if(is_parent()){ ?> <div id="goodlooking"> <?php wp_list_pages()?> </div> <?php } ?>
I hope you understand what I’m after.
Happy for help.
- The topic ‘If (this page has subpages) then’ is closed to new replies.