Home › Forums › Backend Issues (wp-admin) › Change Taxonomy Terms to Slugs in Admin Post Editor › Reply To: Change Taxonomy Terms to Slugs in Admin Post Editor
Hey Jonathan
Ok, we could see how the multi-select works.
What filter would be used to modify this to include the slug?
And to modify my first post, we only need the one set of terms to show.
Here’s the filter from the documentation. Is this what we use?
<?php
function my_taxonomy_query( $args, $field, $post_id ) {
// modify args
$args['orderby'] = 'count';
$args['order'] = 'ASC';
// return
return $args;
}
add_filter('acf/fields/taxonomy/query', 'my_taxonomy_query');
?>
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.