Home › Forums › ACF PRO › Shortcode for fields attached to taxonomies › Reply To: Shortcode for fields attached to taxonomies
I have a custom taxonomy called Agents with taxonomy slug agents. I created a custom field group called Agents. The fieldnames for the fields in the group are agent_name, agent_phone, agent_email and agent_picture.
I tried the above code like so:
[acf field="agent_name" post_id="agents"]
This did not return any values. How can I return custom fields attached to the agents 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.