Choose Which Post Types Appear in Search
Sets exactly which content types the site search returns, for example posts, pages and your portfolio, instead of every public type.
Snippet Library
Snippets that improve WordPress search: search custom fields and post types, exclude pages, redirect single results and highlight matching words. For content-heavy sites where visitors need to find things quickly.
Sets exactly which content types the site search returns, for example posts, pages and your portfolio, instead of every public type.
Hides chosen posts or pages (thank-you pages, landing pages, legal pages) from front-end search results.
Keeps posts from the categories you choose, such as internal updates or sponsored posts, out of the site search results.
When a search returns exactly one result, opens that result directly instead of showing a results page.
Leaves password-protected posts and pages out of search results so their titles are not exposed to visitors.
Wraps the searched words in mark tags in result titles and excerpts, so visitors see why each result matched.
Lets the site search find PDF, Word, Excel and PowerPoint files from the Media Library by their title, caption and description, alongside posts and pages.
Shows a dropdown of matching posts and pages under every search box as the visitor types, using the built-in REST API search.
Hides posts and pages that you set to noindex in Yoast SEO or Rank Math from your own site search, such as thank-you pages and thin landing pages.
Ignores searches shorter than a few characters, which return huge, useless result lists and put extra load on the database.
Asks search engines not to index your internal search result pages, which are thin, endless and a favorite target for spam links.
Lets visitors press the slash key on any page to put the cursor in the search box, a shortcut many people know from popular websites.
Places the WooCommerce product search box above the product grid on the shop and product category pages.
Sends visitors who submit the search form without typing anything back to the homepage instead of showing every post.
Adds the search form as the last item of a classic theme's main navigation menu.
Adds a [search_form] shortcode that places a search box anywhere and can limit results to certain post types, such as a docs-only or products-only search.
Lets the site search also match text stored in custom fields, such as a subtitle, location or product code, not just titles and content.
Makes searches for one word also find posts that use another word with the same meaning, for example "sofa" also finds "couch", using groups you define.
Gives highlighted search words a soft marker-pen look instead of the browser's default yellow box, matching the Highlight Search Terms snippet and any mark elements.
On category pages, adds an "Only in [category]" checkbox to the search form and Search block, ticked by default, so visitors can search just that section.
Makes multi-word searches match the exact phrase instead of any page that contains all the words somewhere, giving tighter results on large sites.
Opens a chosen page directly when someone searches for an exact word or phrase, for example "contact" goes to your contact page and "returns" to your returns policy.
Replaces the usual opening-lines excerpt in search results with the passage of the post that actually contains the search words.