Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Tag search option › Reply To: Tag search option
October 11, 2021 at 1:16 pm
#35124
Keymaster
For that layout it is not possible via settings, but might be doable via custom code.
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter( 'asp_query_args', 'asp_change_tag_logic_filters', 10, 2 );
function asp_change_tag_logic_filters( $args, $id ) {
foreach ( $args['post_tax_filter'] as $fk => &$fv ) {
if ( $fv['taxonomy'] == 'post_tag' ) {
$fv['logic'] = 'AND';
$fv['_post_tags_empty'] = false;
}
}
return $args;
}