Forums
(@wdwordpress)
17 years, 11 months ago
try this:
<?php global $wp_query;
if( empty($wp_query->post->post_parent) ) { $parent = $wp_query->post->ID; }
else { $parent = $wp_query->post->post_parent; }
wp_list_pages (“&title_li=&child_of=$parent”);
?>