Title: Query Loop direct children
Last modified: May 27, 2024

---

# Query Loop direct children

 *  [Doobeedoo](https://wordpress.org/support/users/doobeedoo/)
 * (@doobeedoo)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/)
 * Hello,
 * With GenerateBlocks Query Loop, when I select post type = “Pages”, parent = “
   Current post”, it is also showing the child pages of the current page child pages.
 * Can you add an option to show only the direct children?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17784143)
 * Hi there,
 * feel free to add your feature request here: [https://feedback.generateblocks.com/](https://feedback.generateblocks.com/)
 * we will be reviewing them periodically 🙂
 *  Thread Starter [Doobeedoo](https://wordpress.org/support/users/doobeedoo/)
 * (@doobeedoo)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17787437)
 * Hello Ying,
 * Thank you for your answer
 * I posted it here as you asked: [https://feedback.generateblocks.com/47](https://feedback.generateblocks.com/47)
 * By the way, I’m not sure it’s a “new feature request”, it’s more some basic WordPress
   that a Query Loop should be able to manage natively 🙂
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17787554)
 * Does WP’s query loop block has this feature? If not, then it’s something basic
   🙂
 *  Thread Starter [Doobeedoo](https://wordpress.org/support/users/doobeedoo/)
 * (@doobeedoo)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17788857)
 * Unfortunately, WP is 10 years late on its own software …
   but pages with parent/
   child and posts with categories/tags are the basic foundations of WP, yes!
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17788977)
 * Hi there,
 * that option passes the `'post_parent'` parameter into the query loop args.
   Which
   is the core function for returning Child Pages of the specified Parent ID.
 * Here i have a basic setup where i have a parent , 2 children and 1 grand child
   
   And the resulting the query loop on a parent page only returns the 2 children:
 * [https://app.screencast.com/oJ6gvTQvDzJO5](https://app.screencast.com/oJ6gvTQvDzJO5)
 * So for me the query loop is returning just the child pages as expected.
   If its
   not for you then i assume there is some other parameters affecting the query.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Query Loop direct children’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

## Tags

 * [child page](https://wordpress.org/support/topic-tag/child-page/)
 * [query loop](https://wordpress.org/support/topic-tag/query-loop/)

 * 5 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/query-loop-direct-children/#post-17788977)
 * Status: not resolved