Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter Dave Parker

    (@deapness)

    Thanks for the post!

    But like I said I am pretty newb @ php but is this what you wanted me to try?

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

    I added that code you posted in after wp_list_pages(. It doesn’t appear to be working, though.

Viewing 16 replies (of 16 total)