Home › Forums › General Issues › Get Advanced Custom Field Group for specific taxonomy term › Reply To: Get Advanced Custom Field Group for specific taxonomy term
SORRY THIS IS NOT SOLVED I CLICKED IT BY MISTAKE AND CAN’T UNDO
Ok so I’m actually talking about a acf Group that is assigned to a post if the taxonomy term is equal to a specific term.
Sorry just reading that back, it doesn’t make a lot of sense (if I was able to upload a screengrab initially this would’ve been easier)
The specific term is what I’m looking for not post. What I meant above is that when I assign a field group to a term i.e. in the acf group location meta box I’m setting:
Show this field group if Post Taxomony is equal Term(e.g. Web Design)
This is a custom taxonomy(Services) for a custom post type(Deals) and if I open a Post/Service and set the taxonomy term to Web Design then my field group appears.
So I’m looking to get the field group that is assigned to Web Design
This is along the lines of what I was trying but is returning an empty array.
acf_get_field_groups(array('post_id' => 'term_1293'));
Sorry for the confusion.
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!