I cannot retrieve values from the custom fields. I have added 2 fields (2 individual groups, each containing 2 text fields + another group with 2 text fields) to post and trying to show the data to front end.
I have used get_fields()
, but no luck. Output is blank.
I have tried to get all meta fields through get_post_meta()
, but it seems like the custom fields are not stored into meta. All its giving me is the usual post meta data (_edit_last, _edit_lock and all) and a great headache. Please help. how can I list all the custom fields as an array for current post?
Are you talking about fields in a “field group” https://www.advancedcustomfields.com/resources/creating-a-field-group/ or sub field of a “group field” https://www.advancedcustomfields.com/resources/group/ ?
What code have you tried?
Where are you trying it?