Home › Forums › General Issues › How do I show custom fields from tax on posts? › Reply To: How do I show custom fields from tax on posts?
The only reason get_the_terms should be returning more than one is if more than one is selected for that post. From the doc.
get_the_terms( int|WP_Post $post, string $taxonomy )
should only get the terms selected for the post in the specified 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!
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.