<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
			<div id="page_menu">
				<ul>
					<li class="sm_header">Menu Items</li>
					<li>
						<ul>
							<!--<?php 
        wp_list_pages(array('title_li' => '', 'include' => get_post_top_ancestor_id()));
        ?>
-->
							<?php 
        wp_list_pages(array('title_li' => '', 'depth' => 1, 'child_of' => get_post_top_ancestor_id()));
        ?>
						</ul>
					</li>
				</ul>
			</div>
			<div id="page_content">
				<!--<div style="text-align: center;" class="bigger"><?php 
        the_title();
        ?>
</div>-->
				<?php 
        the_content();
        ?>
			</div>
			<div class="clearBoth"></div>
예제 #2
0
<aside class="hide-for-small boc-col pure-u-sm-1 pure-u-md-1-4 pure-u-lg-1-5">

	<div class="panel">

		<ul class="clearfix side-nav boc-panel fold">
		    <?php 
wp_list_pages(array('title_li' => '', 'include' => get_post_top_ancestor_id()));
?>
		    <?php 
wp_list_pages(array('title_li' => '', 'depth' => 3, 'exclude' => '2237', "sort_column" => "menu_order", 'child_of' => get_post_top_ancestor_id()));
?>
		</ul>

	</div>

</aside>
예제 #3
0
if (is_page($post->post_parent)) {
    ?>
class="current_page_item"<?php 
}
?>
><a href="<?php 
echo get_permalink($post->post_parent);
?>
" title="Back to Parent Page"><?php 
echo get_the_title($post->post_parent);
?>
</a></li>
                               
                            <?php 
if ($post->post_parent) {
    $children = wp_list_pages("title_li=&child_of=" . get_post_top_ancestor_id() . "&echo=0");
} else {
    $children = wp_list_pages("title_li=&child_of=" . $post->ID . "&echo=0");
}
if ($children) {
    ?>

                               
                                  <ul>
                                  <?php 
    echo $children;
    ?>
                                  </ul>

                            <?php 
}