Home Forums Add-ons Flexible Content Field How to get label for Reply To: How to get label for

  • Do you mean the label for the flex layout? I’m not sure that there is, at least I’ve never seen anything that suggest that it would be easy. Layouts are stored as part of the field definition. Do an export to code and you can see how it’s stored. Each layout is an array. You would need to use get_field_object() to get the flex field and then loop through the “layouts” sub array to find the one with that layout “name” and output the “label” value of that array element.

    Hopefully that makes sense after you look at the output of exporting.