NO BUG: Nested ACF Text Area Repeater Field not showing up (Code element)

Browser: Chrome & Safari
OS: macOS & Win 11

I am trying to build a super simple LMS where on a single custom page/post I would have a full course. Every course has Topics and each topic has Lessons. For that I am using ACF Repeater Field that has another Repeater Field (Course is a Page >Topic is a Repeater Field > Lesson is a Repeater Field) nested under it.

I have managed o get it working, I get Topic and Lesson titles (also via Dynamic link) appearing as expected, but the problem happens when I try to use the Code element to render iframe with the video that is hosted at BunnyNet. I am using the solution from this thread to display the iframe.

The funny thing is that if I use the Basic Text or the Rich Text element to display ACF data with the Dynamic link, I get the video to show, but only as I tiny little preview and iframe scale settings just don’t work.

It is good to mention that the Code element with the php solution from the link above has worked perfectly well in another example where I didn’t use repeater fields.

Of course, iframe renders in the Gutenberg HTML element as well. It would be great to have a similar element in Bricks.

Cheers!

Hi there,

Thank you so much for checking with us.

If your custom PHP Code inside a nested loop (In builder) does not work as expected, high chance that your code does not handle different scenarios inside builder calls.

get_field() might be an empty result in your case if you are following that thread’s code. You might need to use some additional checking if the current is inside builder mode, inside nested loop etc so your iframe can be outputted well in builder mode.

As code element logic should be handled by the user, I will not mark this as a BUG.

The code element is not support dynamic data currently. It’s already on our roadmap

If you wants your custom code work in builder mode now, kindly provide a temp admin access to help@bricksbuilder.io (Include this thread URL as reference)
I will try my best to see how to modify your code.

Regards,
Jenn

1 Like

Thanks. I just sent an email with Admin credentials.