Submenu on submenu page.
-
Hi,
Right now i have done a submenu with the following code:
<?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <ul id="sub-menu"> <?php echo $children; ?> </ul> <?php } ?>
The code displays and links submenu item pages. The problem is when i click on a submenu page i want the same menu on that page.
Is there a way to write an IF statement that checks if the page is a submenu item, display the submenu for parent.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Submenu on submenu page.’ is closed to new replies.