Home › Forums › General Issues › Can't Add Custom Taxonomy Images Inside Posts › Reply To: Can't Add Custom Taxonomy Images Inside Posts
What you’re getting indicates that a post is being queried and not a term. This is why you’re getting nothing.
get_queried_object() will only return a term in a taxonomy or term template, not in a template that displays a post. You will need to use some other method to get the term associated with the post. I would suggest looking into this https://codex.wordpress.org/Function_Reference/wp_get_post_terms
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.