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.
Bricks Query Loop – How to Insert Elements After Every Nth Post
Update: Follow this tutorial instead. This Pro tutorial provides the steps to output element(s) in a Bricks' query loop after every nth post. Use case:…
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.