Home › Forums › General Issues › Get a CPTs Taxonomy from Post Object › Reply To: Get a CPTs Taxonomy from Post Object
Setting the Relational Post Object to write back to the post (the german translation for this function is not entirely cleat BTW), changing the taxonomy selector to Radio Button (drop down seem to have a bug, as it mixes taxonomies translations) and opening and re-saving every member CPT did the trick, with the following code:
$tax = get_field_object("department");
$taxnum = $tax['value'];
$taxtax = $tax['name'];
$dept = get_term( $taxnum, $taxtax );
$deptname = $dept->name;
Now for the same fun in a repeating field group… yay!
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.