ACF Taxonomy search on backend (Relationship field)
I'm working on a project where I have to filter every Products:product_cat type of taxonomies on ACF. I need those product post type values which contains these taxonomy on the search field. Sadly ACF only supports acf/get_taxonomies_for_select and not like acf/get_post_types. I started with this code, so now I can show all the Taxonomies, but I can't made any filter to it:
// vars
$simple_value = false;
$choices = apply_filters('acf/get_taxonomies_for_select', $choices, $simple_value);
// create field
do_action('acf/create_field', array(
'type' = 'select',
'name' = '',
'class' = 'select-post_type',
'value' = '',
'choices' = $choices,
));
Topic request-filter advanced-custom-fields filters plugins Wordpress
Category Web