Menu 

Completed projects

Leave a Reply

You must be logged in to post a comment.

$output = wp_list_pages(‘echo=0&depth=1&title_li=

Top Level Pages

‘ );
if (is_page( )) {
$page = $post->ID;
if ($post->post_parent) {
$page = $post->post_parent;
}
$children=wp_list_pages( ‘echo=0&child_of=’ . $page . ‘&title_li=’ );
if ($children) {
$output = wp_list_pages (‘echo=0&child_of=’ . $page . ‘&title_li=

Child Pages

‘);
}
}
echo $output;
?>


loading..