Support » Themes and Templates » DIsplay child navigation within child page
4 years ago
Hey, I currently have a navigation bar displaying all the children of that specific page using the following snippet
<h4>Take a seat</h4>
$pages = get_pages('child_of='.$post->ID.'&sort_column=menu_order');
$count = 0;
foreach($pages as $page)
<a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a>
However I would like the navigation to still be displayed if I am on one of the child pages.
Have a look at some of the solutions in this Codex section.