How to get Super Speedy Search working with other search forms

Super Speedy Search provides an ajax search widget you can use anywhere on your site. This search widget can search products, or posts or whatever custom post type you have, as well as custom metadata.

On suitable archive pages, it will use ajax to update the existing archive without refreshing the page. But what if you have another search form that you’d prefer to use?

Configure default Super Speedy Search settings

If you visit Settings -> Super Speedy Search you’ll find some settings to configure the default search results. These are used when you are not using our own search widget. Configure these settings.

Make sure you use the correct search template

Search results templates in WordPress are defined by the post_type parameter that is passed through to the search results. Most often, you will probably be providing either posts (the default) or products search. For example, if you are using Uber Menu search shortcode, to produce a ‘products’ search result list, you should modify the shortcode as follows:

[ubermenu-search post_type=product]

Test

Now test your work – whatever search form you’re using, provided it uses the default built-in WordPress search system, Super Speedy Search will replace the LIKE operator with the faster and better-results-oriented MATCH operator which uses your fulltext index.

To test this, activate the Query Monitor plugin on your search results page, click Queries then search for ‘main’ – it should include MATCH in the SQL query.


Did this article answer your question?

Leave a Reply

Your email address will not be published. Required fields are marked *


We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.