Rate-Limit Site Searches
Limits how many searches one visitor can run per minute and answers the rest with "429 Too Many Requests", protecting your database from search floods.
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.
Limits how many searches one visitor can run per minute and answers the rest with "429 Too Many Requests", protecting your database from search floods.
Sends visitors who submit the search form without typing anything back to the homepage instead of showing every post.
Restyles the theme search form and the Search block as a single rounded pill with an inline button and a clear focus ring.
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.
Restricts the site search to titles, so results contain only posts whose title matches, which is useful for glossaries, directories and recipe sites.
Makes the site search also return posts written by authors whose name matches the search, so "maria" finds everything by Maria Lopez.
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.
Lets shoppers find products by typing their SKU into the store search, including SKUs of individual variations.
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.
Prints a line such as 12 results for "pricing" above the search results, so visitors know how much was found.
Lists search results by publish date, newest first, instead of WordPress's relevance order, which suits news sites and blogs where freshness matters most.