Home › Forums › Bug Reports › Load & Save Terms to Post option broken › Reply To: Load & Save Terms to Post option broken
Same here,
Field type: Taxonomy, Single Value (Select)
Load & Save Terms to Post: Checked
When “Load & Save Terms to Post” is unchecked the returned value by get_field() is an object, whereas when it is checked the returned value is an array of one object.
Here’s my current workaround for Single Value (Select or Radio Buttons):
$term = get_field('taxonomy_name');
$term = (is_array($term))? current($term) : $term;
WordPress 3.9.2
ACF 4.3.8
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.