Home › Forums › General Issues › SELECT2JS › Reply To: SELECT2JS
what is strange is that when i use the filter as written in demo only to test, my list is empty (there are line items but no text…
function my_post_object_result( $title, $term, $field, $post_id ) {
// add the term's slug to each result
$title .= '(' . $term->slug . ')';
return $title;
}
add_filter('acf/fields/taxonomy/result', 'my_taxonomy_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.