Using with non-WP search form
-
Hi Scott,
Great plugin, thank you for sharing a free version. ??
IS&S works perfectly when using a default WP search form, however I use Search & Filter Pro to enhance the search results and allow for filtering, but your IS&S plugin does not recognize this search box in order to suggest search terms, because S&F does not use the standard WP search parameter ID of ‘s’, instead it uses ‘_sf_s’.
I thought that perhaps (short term) I could hack the plugin to modify what it will recognize, and then ask if you’d consider adding this as a setting. BUT when I found (in /assets/iss-ajax.php) and changed this line below:
$remote = wp_remote_get( home_url() . '/?s='.urlencode( sanitize_text_field ( stripslashes( $_GET['s'] ) ) ) );
to read like this:
$remote = wp_remote_get( home_url() . '/?_sf_s='.urlencode( sanitize_text_field ( stripslashes( $_GET['_sf_s'] ) ) ) );
It did not work…..still no suggestions on the S&F search form.
Can you please suggest a way that I can use your plugin to work with with S&F Pro search form?
Many thanks!
- The topic ‘Using with non-WP search form’ is closed to new replies.