Reply To: support for data searching all subdomains custom type post

Home Forums Product Support Forums Ajax Search Pro for WordPress Support support for data searching all subdomains custom type post Reply To: support for data searching all subdomains custom type post

#11114

pubpy
Participant

Hello!

i try to use below this function in function.php

add_filter( 'asp_query_args', 'asp_manual_post_types', 2, 2 );
function asp_manual_post_types($args, $search_id) {
// Enter the post types into this array
$post_types = array(
'post',
'page',
'job_listing'
);

// !! Do not change anything below this line !!
$args[“post_type”] = array_unique(array_merge($args[“post_type”], $post_types));
return $args;
}

but i can't get results for data searching in variable post type [ job_listing ]. please check it to me. thank you