Home › Forums › ACF PRO › Getting Select Field Values From Post Object Inside Repeater › Reply To: Getting Select Field Values From Post Object Inside Repeater
Thanks for sharing the JSON file.
I’ve just checked it and found out that the Return Format of the
download_type field is set to “Both (Array)”. In this case, you don’t need to use the
get_field_object() function anymore. You should be able to do it like this:
$type = get_field( 'download_type' ); $value = $type['value']; $label = $type['label'];
I hope this helps 🙂
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.