WordPress.org

Support

Support » How-To and Troubleshooting » grabbing parent page and its children

grabbing parent page and its children

  • on the parent page:

    <?php $parent = $post->ID; ?>
    <?php query_posts(‘post_type=page&post_parent=’.$parent);
    then i would go through the loop. It gets all the children of the current page

    it outputs the children but not the parent how can I grab the parent!? or do i need to make this a seperate loop?

  • The topic ‘grabbing parent page and its children’ is closed to new replies.