• I’m using this code to list my subpages but how can I add a title to it like, “subpages”? I tried just adding text in the
    ul tags but it displays over the list which I’m floating left on a horizontal line.

    <?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 } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • A link to a page that uses this code would help. There’s not enough in what you have posted to provide a practical solution.

    Thread Starter virgild

    (@virgild)

    ok I’ll provide one soon I finish it. thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding title to list subpages’ is closed to new replies.