Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search results › Reply To: search results
November 21, 2017 at 4:09 pm
#15598
Hi,
It was not actually a bug there, the search query phrase is automatically placed into every search instance. I have however placed the following code to the functions.php file in your child directory via FTP, this will prevent displaying the phrase, unless the search was made via the correct form:
add_filter('asp_print_search_query', 'asp_print_search_query_change', 10, 3);
function asp_print_search_query_change($q, $id, $real_id) {
if ( isset($_POST['p_asid']) && $_POST['p_asid'] == $real_id )
return $q;
return '';
}
Now it should work as you expect it.
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)