Support

Account

Home Forums General Issues Conditional logic to display taxonomy terms

Unread

Conditional logic to display taxonomy terms

  • Hi,

    i have a taxonomy field (val1, val2, val3)
    depending on what has been selected i need to hide some terms
    do you think it’s possible ?

    function filter_taxonomy_query ($args, $field, $post_id){
    	
    	$args['i_dont_know_what_to_put_here'] = array ('131  '245' ); //ID to display
    	
    	$return args;
    
    }
     add_filter('acf/fields/taxonomy/query/key=field_5ca35c102c42a', 'filter_taxonomy_query', 20, 3);
Viewing 1 post (of 1 total)

The topic ‘Conditional logic to display taxonomy terms’ is closed to new replies.