wp_list_pages
-
Hi
i have a requirement, am trying to disply the child menu (sub navigation) in the horizontal box instead of Dropdown menu with the help of below code.
[please remember to mark your code unsing the ‘code’ button]
<?php if($page_id == "8" || $page_id == "10" ) { print $page_id; } else { $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=1'); if ($children) { ?> <li style="margin:0px; padding:0px;" class="menusm"> <?php echo $children; ?> <?php } } ?>
it works fine and displays the child menu properly when there is a sub navigation. and when there is no sub navigation it displays the Page ID.
but my problem is, when am clicking the child menu the menu disapears and it stand empty row… i want to display the child navigation there…
can any one help me with this…
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_list_pages’ is closed to new replies.