Block Spam Searches
Answers search requests that contain links, markup, very long strings or words you block with a 404, stopping bots from filling search pages with spam.
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.
Answers search requests that contain links, markup, very long strings or words you block with a 404, stopping bots from filling search pages with spam.
Sets exactly which content types the site search returns, for example posts, pages and your portfolio, instead of every public type.
Shows a small label such as "Page", "Post" or "Product" in front of each search result title, so visitors can tell results apart at a glance.
Hides chosen posts or pages (thank-you pages, landing pages, legal pages) from front-end 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.
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.
Restricts front-end search results to blog posts, leaving out pages and other post types.
Asks search engines not to index your internal search result pages, which are thin, endless and a favorite target for spam links.
Shows 20 results per page on search results without changing the blog page.
Leaves blog posts older than three years out of search results, while pages and other content types stay searchable, which suits news sites and fast-moving topics.
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.
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.
Lists matching pages first in search results, then blog posts, then other content, so key pages like pricing or contact are not buried under older posts.
Replaces the usual opening-lines excerpt in search results with the passage of the post that actually contains the search words.