Specialized Search Results
WordPress has a built-in search engine, that will search by default in every post type you have in your site, and also inside pages! The search engine will use the page Search Results that you created in Webflow, you don’t need any special configuration to use the basic search engine. It’s all automatic.
If you want though to make a search page that is specialized just for one post type, you need to configure it in a certain way, follow these 2 simple steps!
1. Create a specialized Search Form
By default the search form of Webflow will search on all your database, if you want to make instead a search form that searches only within 1 post type use the following attribute on the Search element.
For example if you want to search only in Products, you can use:
or you can just copy the search form below:
2. Create a specialized Search results page
To create a specialized search results page, you just need to create a page in Webflow that has as slug the following pattern:
So for example if you want to create a search results page just for products the page slug must be:
Inside this page to show search results, create a collection list of products and add the following attribute on the collection list wrapper: