Home › Forums › General Issues › Get Advanced Custom Field Group for specific taxonomy term › Reply To: Get Advanced Custom Field Group for specific taxonomy term
You are confusing me because you said above that you want the fields of a post assigned to a term.
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.
But you are also asking about getting fields shown for a term.
I’m looking for the groups assigned to a term.
This would be like the fields that might be displayed on a page such as
These are two completely different things.
for the first I would use
acf_get_field_groups(array('post_id' => '1293'));
for the second I would try
acf_get_field_groups(array('post_id' => 'term_1293'));
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!