Including Sub Pages in navbarleft
-
I am trying to list a subpage under a parent page. I have no idea but my latest experiment code looks like:
<div id=”navbarleft”>
<ul id=”nav”>- “><?php _e(“Home”, ‘studiopress’); ?>
<?php wp_list_pages(‘title_li=&depth=4&sort_column=menu_order&include=2’); ?>
<?php wp_list_pages(‘title_li=&depth=4&sort_column=menu_order&include=6’); ?>
<?php $children = wp_list_pages(“title_li=&child_of=6&depth=4&include=37”); ?></div>
I am trying to list sub page 37 under the parent page 6 hence the $children bit.
Can someone assist me to get this to work
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Including Sub Pages in navbarleft’ is closed to new replies.