Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="sidebar">
- <div class="widget">
- <?php
- $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
- if ($children) { ?>
- <ul>
- <?php echo $children; ?>
- </ul>
- <?php } ?>
- </div>
- <div class="widget">
- <?php wp_list_pages("title_li=&child_of='.$post->post_ancestor.'&show_date=modified&date_format=$date_format"); ?>
- </div>
- <?php $sidebar = is_page() ? 'page' : 'blog' ?>
- <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar($sidebar)): ?>
- <!-- Static sidebar items -->
- <?php endif; ?>
- </div>
- </div>
- <div class="clear"></div>
Add Comment
Please, Sign In to add comment