Home › Forums › General Issues › Taxonomy field on taxonomy term? › Reply To: Taxonomy field on taxonomy term?
There is nothing easy or simple.
Taxonomy => company
Taxonomy => company-type
Where each company has a selected company type
To do this you would need to get all of the terms in company using get terms. Then you would need to loop over the entire set and use get_field() to get the company type. You can’t use get_terms() because in WP terms cannot have terms. Using this method you can assemble your own subset of companies that have a specific company type.
Going back to the beginning I would probably have made company a custom post type with company type being the taxonomy.
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!
🚀 ACF & ACF PRO 6.0.7 are now available.
— Advanced Custom Fields (@wp_acf) January 18, 2023
✨This release contains bug fixes and improvements while we continue to work on the next major release of ACF.https://t.co/wQgAOpwmUI
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.