Hi, Below code is very nice,
<?php
$args = array(
‘numberposts’ => -1,
‘post_parent’ => $post->ID,
‘post_type’ => ‘page’,
‘post_status’ => ‘publish’,
‘orderby’ => ‘menu_order,title’,
‘order’ => ‘ASC’
);
$my_pagelist = &get_children($args);
if ($my_pagelist) {
foreach($my_pagelist as $my_child) {
$my_child_slug = $my_slug . ‘/’. $my_child->post_name.’/’;
$my_content = apply_filters(‘the_content’,$my_child->post_content);
$my_content = str_replace(‘]]>’, ‘]]>’, $my_content);
echo $my_content;
}
}
?>
This is reference site :
http://codex.wordpress.org/Function_Reference/wp_list_pages
http://wordpress.org/support/topic/display-subpage-content-on-parent-page
ЁЯЩВ