<div id="container">
<div id="content" role="main">
<?php
get_template_part( 'loop', 'page' );
global $post;
$args=array(
"post_parent" => $post->ID,
'paged' => get_query_var( 'page' ),
'post_type' => 'page'
);
// The Query
$the_query = new WP_Query( $args );
// The Loop
echo "<ul>";
while ( $the_query->have_posts() ) : $the_query->the_post();
echo '<li class="chiled-title">';
the_title();
the_excerpt();
echo '</li>';
endwhile;
echo "<ul/>";
?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
</div><!-- #nav-below -->
<?php endif; ?>
<?php
// Reset Post Data
wp_reset_postdata();
?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.