template: just show child uri’s
-
<?php /* Template Name: Just Show Child URL's */ $page_children = get_page_children($post->ID, ''); if (!empty($page_children)) { foreach ($page_children as $child) { echo $child->guid . "\n"; } } ?>
Why won’t this work ??
If i put in a wp_list_pages, it works …<?php /* Template Name: Just Show Child URL's */ wp_list_pages(); $page_children = get_page_children($post->ID, ''); if (!empty($page_children)) { foreach ($page_children as $child) { echo $child->guid . "\n"; } } ?>
Help 🙁
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘template: just show child uri’s’ is closed to new replies.