Home

Thursday, October 18, 2012

Display submenu on left side on all pages

<?php
if($post->post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
    <?php echo $children; ?>
<?php } ?>

No comments:

Post a Comment

rathoddhirendra.blogspot.com-Google pagerank and Worth