Home › Forums › Front-end Issues › Can't get get_field('field','tag_XXXX') to work on tag template › Reply To: Can't get get_field('field','tag_XXXX') to work on tag template
! Found the solution : I should have used post_tag instead of tag.
That’s not very intuitive, but glad I stumbled upon a reference in the Codex.
Eliott, I suggest you add this in the get_field documentation, it’s rather clear for category_ID, but not for tags, and I can’t be the only one trying to do that 🙂
Cheers,
Baptiste
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.