Support

Account

Home Forums Add-ons Flexible Content Field Display a flexible content field with foreach() ?

Unread

Display a flexible content field with foreach() ?

  • Hello and thanks in advance for the help!

    I have a flexible content field nested in a repeater field’s foreach loop. It is not displaying when I use the method prescribed in the documentation (if, while statements).

    I’m assuming that it would work if it was a nested foreach statement instead? But, I’m not sure or you’re even able to use foreach with the flexible content field.

    I am doing it this way in an effort to have access to values from the previous repeater row as discussed here: https://support.advancedcustomfields.com/forums/topic/get-value-from-next-row-in-repeater/

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.