advanced-query-loop icon indicating copy to clipboard operation
advanced-query-loop copied to clipboard

Feature Request: Support for Nested Loops

Open katoen opened this issue 1 year ago • 2 comments

Would it be possible to extend the AQL block's functionality to support nested loops? For example: 393008788-462c825c-a0de-44be-bbb2-f7c4351d49f9

I expected a nested query block to inherit its context from the parent query, allowing for dynamic, hierarchical queries. Instead, each block takes context from the page it’s on, which limits flexibility and makes working with nested structures harder.

related to: #89

katoen avatar Dec 06 '24 10:12 katoen

This is an interesting idea but I am struggling to determine a use-case beyond querying for children of the post that is represented by the Post Template - which would only work for Pages and custom post types that have been defined as hierarchal. Is that what you had in mind or where there other cases I am not thinking of?

ryanwelcher avatar Jul 09 '25 16:07 ryanwelcher

Is it possible to use a relationship meta query for the children. Thinking of that second query as a WHERE "child_meta_value" is found in the parent.

bmx269 avatar Jul 09 '25 17:07 bmx269