Home › Forums › General Issues › Custom Post Type with a custom category › Reply To: Custom Post Type with a custom category
Sorry, I can’t read the language so I can’t say, the images don’t help me much
From what I understand reading you want to add a field group to a posts with a specific term of a custom taxonomy. This is what it appears you are trying to do by looking at the images. This is built into ACF5.
"Post Taxonomy" "is equal to" "My Custom Taxonomy Term"
If you want to do this yourself, ACF passes the values of the terms selected in $options[‘post_taxonomy’], you can see an example of where I get this value and determine what terms are selected on line 26 of this file: https://github.com/Hube2/acf-filters-and-functions/blob/master/acf-post-category-ancestor-location-rule.php
But I could be misunderstanding what you want to do and here are some others
If you want to add it to the term edit page then you’d use
"Taxonomy Term" "is equal to" "My Custom Taxonomy"
I you are trying to add the field group to a specific term edit page of the custom taxonomy, they you could be right. In order to make is work when you select it instead of saving the post. ACF passes values to your location match filter in the $options argument.
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.