Home › Forums › Backend Issues (wp-admin) › Custom admin taxonomy displaying › Reply To: Custom admin taxonomy displaying
Thanks for the clarification. To change the text displayed on the admin, you can hook into acf/fields/taxonomy/result filter and then fetch the values of the custom fields containing the price.
The code would look something like this:
<?php
function my_relationship_result( $title, $term, $field, $post_id ) {
// load a custom field from this $object and show it in the $result
$price = get_field('price', $post->ID);
// append to title
$title .= ' [' . $rice . ']';
// return
return $title;
}
// filter for a specific field based on it's name
//add_filter('acf/fields/taxonomy/result/name=my_taxonomy', 'my_relationship_result', 10, 4);
?>
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.