Home › Forums › General Issues › Query for Taxonomy with ACF User Field › Reply To: Query for Taxonomy with ACF User Field
You cannot do this with only a query on the posts (products) because the user field is not associated with the posts, it is associated with a term (category).
What you will need to do is first to use get_terms() with a meta_query to get a list of terms that are associated with the user. Using this you then query the posts using a taxonomy_query of the terms found in the first step.
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.