Home › Forums › General Issues › Show custom field from paired taxonomy › Reply To: Show custom field from paired taxonomy
What you want to do is very similar to this https://www.advancedcustomfields.com/resources/querying-relationship-fields/ except that you’d be using querying “catalog” based on the taxonomy field and using the term ID value instead of the post ID value.
$args = array(
'taxonomy' => 'catalog',
'meta_query' => array(
array(
'key' => 'producer'
'value' => '"'.$term_id.'"',
'compare' => 'LIKE'
)
)
);
get_terms($args);
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.