Title: Query loop custom parameter
Last modified: August 24, 2022

---

# Query loop custom parameter

 *  Resolved [chrisfromwa](https://wordpress.org/support/users/chrisfromwa/)
 * (@chrisfromwa)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-loop-custom-parameter/)
 * Hello,
    I’m just found your plugin, and wanted to know if the query loop will
   do what I need.
 * What I’m trying to do is this.
    I have hierarchy enabled on my page/posts, so
   every post will be a child of a respective parent page.
 * I then want on the parent page, want to display with the loop all posts that 
   are tied to this page. I’m looking at the parameter setting, and see there is
   a parent options. But it seems I have to manually select a parent page. What 
   I’m hoping I could do is have it see the current page ID, then use that as a 
   variable to pull all posts with that have that parent ID. Is it possible to use
   more of a query function here? Or is hard coding/selecting the parent page manually
   the only way to do this type of filtering?

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

 *  [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * (@fernandoazarcon2)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-loop-custom-parameter/#post-15944031)
 * Hi [@chrisfromwa](https://wordpress.org/support/users/chrisfromwa/),
 * The option to choose the current post as the parent post for the posts to query
   is available through GB Pro.
 *  [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * (@fernandoazarcon2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/query-loop-custom-parameter/#post-16311711)
 * Hi there! We haven’t heard back from you for a while now so we’re going to go
   ahead and set this topic as resolved. Feel free to reply if you need any more
   help.

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

The topic ‘Query loop custom parameter’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/query-loop-custom-parameter/#post-16311711)
 * Status: resolved