Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // if there are subpages of the current page,they will be listed here
- if($post->post_parent)
- $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order"); else
- $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order");
- if ($children && !$s) { ?>
- <div class="box-right">
- <h4>Sub-Pages</h4>
- <ul>
- <?php echo $children; ?>
- </ul>
- </div>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement