the_parent_link($post); ?> - Demo 4
Copied from original lesson at http://learningwebgl.com/blog/?p=370
Initializing…
if($post->post_parent) {
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0$sort_column=menu_order");
} else {
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
}
?>
if ($children) { ?>