Home › Forums › Backend Issues (wp-admin) › Display taxonomy custom field in back office › Reply To: Display taxonomy custom field in back office
Ok solved it alone, sharing here if ever someone needs it.
function icon_avant_term( $title, $term, $field, $post_id ) {
if(is_admin() && ("produits" == get_post_type($post_id)) ){
$taxo = $title;
$image = get_field('icone_liste_plus', $term);
$title = '<img src="'.$image['url'].'" /> ' . $taxo;
return $title;
}
}
add_filter('acf/fields/taxonomy/result/name=point_cle_produit_icon', 'icon_avant_term', 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.