Help on wp_list_pages
-
Current code.
<?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) { ?>< ul>
<?php echo $children; ?>
< /ul>
<?php } ?>I want my current parent appear at
<?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) { ?>< ul>
< li>I want current parent title at here< /li>
<?php echo $children; ?>
< /ul>
<?php } ?>How to do that?
- The topic ‘Help on wp_list_pages’ is closed to new replies.