i am trying to create a page which lists links for its sub-pages.
currently i have created a new "pages" template and added the following code below. this all works fine
i was wondering if it is possible to call the "wp_list_pages" function without having to use something like the exe-php plugins?
this way i wouldn't have to create a new template.
<?php if($post->post_parent) { // page is a child
echo "<ul>";
wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->post_parent);
echo "</ul>";
}
if(wp_list_pages("child_of=".$post->ID."&echo=0")) { // page has children
echo "<ul>";
wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->ID);
echo "</ul>";
} ?>