I am having trouble displaying data from nested Meta Box groups using the Query Loop. Here is my setup:
Meta Box Structure: I have a main cloneable group (ID: section_group). Inside this group, there are two standard fields and a nested cloneable group (ID: group_app_img).
Bricks Builder Setup: * I have an outer container with a Query Loop set to MB Group: section_group. This works correctly, and I can display the top-level fields.
Inside that, I have a sub-container with a Query Loop intended to loop through the nested group_app_img.
The Problem: When I select the nested group in the sub-container’s Query Loop, the dynamic data fields inside it return empty values on the frontend.
Question: What is the correct way to query and display fields from a nested cloneable Meta Box group within Bricks Builder? Is there a specific configuration or a recommended PHP query approach for nested loops?
Can you replicate it even with that simple example? If yes, can you send temporary login credentials to your test/staging website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?
"I have identified the root cause of the issue. In the Meta Box Group settings, under the ‘Cloneable’ options, I had the following settings enabled:
Start with no input
Allow to reorder clones
Save in multiple rows (This was the critical one)
After disabling these options (specifically ‘Save in multiple rows’) and re-entering the data, both the outer and inner Query Loops in Bricks started working perfectly.
It appears that ‘Save in multiple rows’ changes the database structure in a way that prevents Bricks from correctly parsing the nested array relationship. Once the data is saved as a single serialized array (default Meta Box behavior), the nested Query Loop functions as expected."