Yes, this works: get_term_meta($term_id, 'my_field', true)
Yes, they are.
Managed by backend.
@dany0 get_field('my_field', $taxonomy . '_' . $term_id)
While get_field() returns the right content on post_type pages, it returns null on taxonomies, even though these fields have been created from the ACF editor. Can anybody recommend how to use get_field() on taxonomies on 5.11?
I consider that this was not a minor update and therefore should have been notified as such. The issue happened updating from 5.10 to 5.11 and nobody expected it could generate issues. For example all my SEO elements, such as SEO title or meta descriptions are controlled by ACF and therefore my sites could have been seriously affected If I would not have seen it right after updating.
In our project, those fields were not registered via PHP. They were created using the ACF WP Editor.
Same issue here. After updating to version 5.11, get_field returns null on my taxonomies:
get_field('my_field', $taxonomy . '_' . $term_id)
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.