So I DO NOT want to show grandchildren. I know how to do this with the normal WP codex, but I’m not using in a normal way.
Here’s what I’m doing…
Code:
post_parent)
$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) { ?>
post_parent);
echo $parent_title;
?>
Please help…
Thank you so much.
Ok I tried this:
Code:
$children = wp_list_pages(“depth=1&title_li=&child_of=”.$post->post_parent.”&echo=0″);
else
$children = wp_list_pages(“depth=1&title_li=&child_of=”.$post->ID.”&echo=0″);
…. no go. :(
Any other ideas as to WHERE I should put this?