Support » Plugin: WP-dTree » get current page & children

  • Resolved ArthurAndAshes



    Nice plugin (with custom sidebars)! I would like to know if it is possible to get the current page with its own children (in my templates). I tried using <?php wpdt_list_pages(); ?> but there is no docs on the use of this function. So I don’t know how I can get the $arg = get_page_children( $page_id, $pages );

    Can you help me to do it ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ulfben


    I actually get the children of my current page without your function. Could not use your functions to get different folders…

      $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
      if ($children) { ?>
      <?php echo $children; ?>
      <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get current page & children’ is closed to new replies.