I’m using a code based on this exemple to print all my custom fields at post page.
http://www.advancedcustomfields.com/resources/functions/get_field_objects/
However, I need to print the prefix and suffix for all fields. For exemple:
Area: 55 m2 (suffix)
Price: US$ 250.00 (prefix)
How can I do that?
Hi @juliosene
As illustrated in the reference documentation, you can output field settings from the $field variable. The append data can be found at $field['append']
, and the prepend can be found at $field['prepend']
.
Please debug the data to find out all the available settings:
http://www.advancedcustomfields.com/resources/how-to/debug/
Thanks
E