Limit Search Results to Posts
Restricts front-end search results to blog posts, leaving out pages and other post types.
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.
Restricts front-end search results to blog posts, leaving out pages and other post types.
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.
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.
Lists search results by publish date, newest first, instead of WordPress's relevance order, which suits news sites and blogs where freshness matters most.