Reply To: only show productos from custom taxonomy category

Home Forums Product Support Forums Ajax Search Pro for WordPress Support only show productos from custom taxonomy category Reply To: only show productos from custom taxonomy category

#9970

bousso
Participant

my friend this is perfect, in the front I need at least 8 horizontal carrusels so I guess I have to replicate this code right?

add_filter( 'asp_query_args', 'asp_include_only_term_ids', 2, 2 );

function asp_include_only_term_ids( $args, $id ) {
/**
* Enter the desired taxonomy=>terms here.
* For example, if you want to search category 1 and 2, then:
* “category” => “1,2”
*/
$include = array(
“categoriageneral” => “166”
);
$search_ids = array(7);

if ( !in_array($id, $search_ids) )
return $args;