Yes, this works: get_term_meta($term_id, 'my_field', true)
@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)