=========
QUESTION
———
How do I list the child pages on a page?

 

=========
ANSWER
———
Place the code in the EXAMPLES section in your theme’s Functions.php file, and then call it using the shortcode

[children]

 

=========
EXAMPLES
———
function child_pages_shortcode() {
   global $post;
   return '<ul>'.wp_list_pages('echo=0&depth=0&title_li=&child_of='.$post->ID).'</ul>';
}
add_shortcode('children', 'child_pages_shortcode');

 

=========
APPLIES TO / KEY WORDS
———
WordPress
Child Pages
Navigation
Menu

 

=========
REF
———
http://sillybean.net/2010/06/listing-child-pages-with-a-shortcode/

———
SIMILAR
http://www.anysitesupport.com/how-do-i-add-a-wordpress-menu-to-the-content-of-my-page/

 


http://www.anysitesupport.com/wordpress-list-child-pages-using-a-shortcode/
http://anySiteHosting.com