Sometimes, you might want to obtain the parent (of any level, not just the immediate parent) query loop's object and, from this object, the term_id or post id or other data, depending on what is being looped.
There are two ways of getting a parent query loop object in Bricks.
By element ID.
Dynamically using a custom function in which we specify the desired level.
Learn how to enable masonry layout for nestable accordions in Bricks builder and use JavaScript to re-layout the masonry on accordions' open and close.
Conditionally Outputting Query Loop Item Based on Post Meta in Bricks
Rendering query-loop enabled posts depending on the value of each post's custom field value is tricky because by default, the custom field plugins' functions or…