Only Display Immediate Children
-
Hi there
I need to add a sidebar for navigation for only the immediate children of a page, not its grandchildren.
I found a piece of code which displays children and grandchildren:
<ul class="sidebar"> <?php wp_list_pages('child_of='.get_the_ID().'&title_li=<div class="sideTitle">'.__('Next Steps').'</div>'); ?>
Any ideas on how to make it only display immediate children?
Cheers
Richard
[Please post code snippets between backticks or use the code button.]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Only Display Immediate Children’ is closed to new replies.