Support » Plugins » Sub-navigation not working in posts page

  • Hi,

    Im using this code to add dynamic sub-navigation in my side bar (if page has child pages, they should appear there)

    			$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else
    			$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
    			if ($children) { ?>
    			<?php echo $children; ?>
    		<?php } ?>

    It’s working fine with all the other pages, except the one which has posts on it. Im quite new with wordpress so maybe there is something that i have missed?

    Has anyone some idea how to solve this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sub-navigation not working in posts page’ is closed to new replies.