Reply To: search value from wordpress search showing as plugin search value (2 forms page)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support search value from wordpress search showing as plugin search value (2 forms page) Reply To: search value from wordpress search showing as plugin search value (2 forms page)

#9736

Ernest Marcinko
Keymaster

Since this code will be overwritten in case of an update, I'm adding a way to resolve this in the upcoming release. In case you update in the future, just put this code to the functions.php file in your active theme directory:

add_filter('asp_print_search_query', 'asp_change_query_cond', 1, 1);
function asp_change_query_cond( $q ) {
    if ( isset($_GET['search-type']) )
      return "";
    return $q;
}

If you don't mind, I will close this topic and mark it as resolved for now, feel free to open another one if you have other issues.

If you like the plugin, feel free to rate it on your codecanyon downloads page, it's greatly appreciated.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)