Thanks for that, not really sure how to use it. I guess what I want to do is make a copy of my default page template and add in the code that displays a list of the child pages.
Here’s the parent page template code from the Constructor theme – how do I pick out just the bits I need to put into my Mystique page?
I want every other aspect of the page to look the same as my default Mystique pages.
<?php
/*
Template Name: Parent Page
*/
/**
* @package WordPress
* @subpackage Constructor
*/
get_header(); ?>
<div id="wrapper" class="box shadow opacity">
<div id="container" class="container-sitemap">
<div id="posts">
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID() ?>">
<div class="title opacity box">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'constructor'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entry">
<?php the_content(__('Read the rest of this entry »', 'constructor')) ?>
<ul>
<?php wp_list_pages('title_li=&child_of='.$post->ID); ?>
</ul>
<?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'constructor').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<div class="footer">
<div class="links right">
<?php if($post->post_parent) : $parent_link = get_permalink($post->post_parent); ?>
<a href="<?php echo $parent_link; ?>"><?php _e('Back to Parent Page', 'constructor');?></a> |
<?php endif; ?>
<?php the_date() ?> |
<?php the_tags(__('Tags', 'constructor') . ': ', ', ', '|'); ?>
<?php edit_post_link(__('Edit', 'constructor'), '', ' | '); ?>
<?php comments_popup_link(__('No Comments »', 'constructor'), __('1 Comment »', 'constructor'), __('% Comments »', 'constructor'), '', __('Comments Closed', 'constructor') ); ?> </div>
<div class="line clear"></div>
</div>
</div>
<?php endwhile; ?>
</div>
</div><!-- id='container' -->
<?php get_constructor_sidebar(); ?>
</div><!-- id='wrapper' -->
<?php get_footer(); ?>