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

  • Resolved ArthurAndAshes

    (@arthurandashes)


    Hi,

    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 ?

    https://wordpress.org/plugins/wp-dtree-30/

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

    (@ulfben)

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

    <?php
      $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)
  • The topic ‘get current page & children’ is closed to new replies.