wordpress - Creating sub nav using wp_list_pages(); -


i'm using following code produce list of pages bottom 2 levels of wordpress page hierarchy:

<?php if($post->ancestors){     $ancestors = end($post->ancestors);     $children = wp_list_pages("title_li=&child_of=".$ancestors.""); } ?> 

this seems bring in pages higher last 2 levels though. there can add the code above make list bottom 2 level pages?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -