Home › Forums › ACF PRO › get_fields() not working if some fields has json data › Reply To: get_fields() not working if some fields has json data
Did you mean to mark my question as the answer? Sorry, I was wondering about the field names because field names cannot start with ‘field_’ and if they did that could have been a cause of the issue.
For JSON values you could use either a text field or a textarea field with not formatting. Or you could use any type of field that will hold text data and when getting the value set the 3rd parameter in
get_field($field, $post_id, $format_value) to false to make sure the value is not formatted or altered in any way.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.