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)

#9733
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi,

It’s not an issue, it’s an intended behavior, because the search query variable “s” is set, which is globally used, so ajax search pro recognizes and prints it as expected. You can see it in the URL as well: &s=test

Since you provided FTP details, I’ve made a quick modification to recognize the people search. I’ve changed the wp-content\plugins\ajax-search-pro\includes\views\asp.shortcode.probox.php file lines 78-81, which is:

<input type='search' class='orig' 
  placeholder='<?php echo asp_icl_t( "Search bar placeholder text" . " ($real_id)", w_isset_def($style&#91;'defaultsearchtext'&#93;, '') ); ?>'
  name='phrase' value='<?php if ( !isset($_GET&#91;'search-type'&#93;) ) echo get_search_query(); ?>' 
  autocomplete="off"/>

to:

<input type='search' class='orig' 
  placeholder='<?php echo asp_icl_t( "Search bar placeholder text" . " ($real_id)", w_isset_def($style&#91;'defaultsearchtext'&#93;, '') ); ?>'
  name='phrase' value='<?php echo get_search_query(); ?>' 
  autocomplete="off"/>

Now the phrase should not appear anymore if the staff search is used.

Best,
Ernest Marcinko

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