• Resolved mitchrenton

    (@mitchrenton)


    Hi Guys, I wonder if anybody can help me out here…

    I want to display the sub pages of the given page. Then if I am on a subpage, I want to display the other pages on that level beneath the page parent. Here’s the code I have so far…

    <?php
      $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
      if ($children) { ?>
      <ul>
      <?php echo $children; ?>
      </ul>
      <?php } else; { ?>
      //need an argument here to say display pages on the same level as current page
    
      <?php } ?>

    Hopefully that make sense, I’ve tried a few methods but just can’t seem to get both arguments firing correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom List Pages Argument’ is closed to new replies.