List sub pages inside a page… hmmm :)
-
I would like to list the sub pages inside a page. I am using runPHP to run php inside my page… For some reason this piece of script returns “4” ?!?!
<?php
$current_page_id = the_ID();
wp_list_pages("child_of=$current_page_id");
?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘List sub pages inside a page… hmmm :)’ is closed to new replies.