NO BUG: Issue with retrieving data from Nested Cloneable Groups in Meta Box

Hi Bricks Team,

I am having trouble displaying data from nested Meta Box groups using the Query Loop. Here is my setup:

  1. 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).

  2. 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.
  3. 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?

Looking forward to your guidance. Thank you!

Hey @wilsoning,

I can’t replicate this issue locally. I added data to MB settings page, and in the builder, it looks like this:

In settings page, it just look like this:

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?

Thank you,
Matej

"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."

Hey @wilsoning,

ah, yeah, that might be it. This is non standard way to store data, so this is not supported with Bricks. IF you keep it disabled, it should work.

Because of this, I’m marking this topic as no-bug.

Best regards,
Matej