Home › Forums › ACF PRO › Choose wordpress tags shown in ACF field taxonomy (= do not show every term) › Reply To: Choose wordpress tags shown in ACF field taxonomy (= do not show every term)
Haha, there’s absolutely no reason for you to apologise. Thanks a lot for your continuous help, much appreciated! It’s working now.
function my_taxonomy_wp_list_categories( $args, $field ) {
// modify args
$args['orderby'] = 'count';
$args['order'] = 'ASC';
$args['include'] = '589,186'; // list of terms to include
// return
return $args;
}
add_filter('acf/fields/taxonomy/wp_list_categories/name=ti_tag_test', 'my_taxonomy_wp_list_categories', 10, 2);
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.