I have a parent page with some child pages inside. What I'm looking to do is display every child page excerpt and some other information inside its own cell on the parent page. Does anyone know how this can be achieved ?
<div class="parent page">
<?php $args = array(
'parent' => $post->ID,
'post_type' => 'page',
'post_status' => 'publish'
);
$pages = get_pages($args); ?>
<div class="childcells">
<?php foreach( $pages as $page ) { ?>
<div class="childcell">
<div class="thumbnail"><?php echo get_the_post_thumbnail($page->ID, 'small-thumb'); ?></div>
<div class="myclasstitle"><?php echo $page->post_title; ?></div>
<span class="desc"><?php echo get_post_meta($page->ID, 'desc', true); ?></span>
<a href="<?php echo get_permalink($page->ID); ?>" rel="bookmark" title="<?php echo $page->post_title; ?>">
Read more
</a>
</div>
?>
get_the_excerpt( $page->ID )
codex.wordpress.org/Function_Reference/get_the_excerpt