Home › Forums › ACF PRO › Add Custom Tax To Relationship Field? › Reply To: Add Custom Tax To Relationship Field?
Thank you John, unfortunately its not working.
The custom tax is called ‘area’ which has two categories within.
When try your code with ‘area’ put in ‘your-taxonomy-slug’ i get a fatal error and the admin page doesn’t load completely..
Fatal error: Call to undefined function get_post_terms() in functions/inc/acf.php on line 71
Line 71 is..
$terms = get_post_terms($post->ID, 'area', $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.