Exclude ID doesnt work if nothing selected
-
Exclude ID doesnt work if nothing selected. If I click on search button without something selected. is displaying every page.
I also try exclude category ID with this
add_filter(‘ajax_wpqsf_query’, ‘exclude_search_cat’);
function exclude_search_cat($args){
$args[‘category__not_in’] = array(22);//category id you want to exclude
return $args;
}
eg. make category “notsearch” for pages i dont want include in to results. But it doesnt work
Thank you in advance for your help
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Exclude ID doesnt work if nothing selected’ is closed to new replies.