Hello Everyone,
I’m using ACF Pro for a project and I need to display the label of the row layouts in my flexible content.
Something such as
get_field_object($field)[label]
– just for rows
Didn’t find it in the documentation.
Thanks in advance,
Sebastian 🙂
Hi @basinski
The layout title is saved in the field settings array using the key [‘acf_fc_layout’]
You can loop through the items in the array produced by the get_field_object() to get the layout names.
Hi,
Could you please provide more details? What if my layout is called ‘form’, how do I get the corresponding label? I tried several things without success.
Thank you