Searching by specific post-types
There are two different methods for stripping post-types from search results. Specific post-types can be removed from your entire search index, or you can filter the results based on the post-type.
There are two different methods for stripping post-types from search results. Specific post-types can be removed from your entire search index, or you can filter the results based on the post-type.
You may have noticed that search doesn’t work the same way on Strattic that you might expect on a typical WordPress site. That’s to be expected, native WordPress search requires a server, and remember, with your live site on Strattic, there is no server 🧙♀️ ✨. This is the gist
If you’ve worked with custom themes in WordPress, you know that you can typically add a search.php template file to your theme files, and that will produce a custom search results page. With Strattic, there are a few extra steps you’ll need to do in order to make sure your
There’s a lot you can do to customize your Algolia search results… Check it out!
Before you get started This guide assumes you’re bringing your own Algolia index, and not using Strattic’s index of your site. From there, you will need three things for the app to work: Application ID (e.g. ABCDEF12345) Search API key (e.g. asdf1234asdf1234asdf1234) Index name (e.g. wp_posts_index) These can all be found in your
What sort of custom search solutions are possible on Strattic? Just about everyone who has a PHP or admin-ajax based search solution… This is a difficult question to answer, since there are an unlimited number of options available 🤓 .