Skip to content Skip to footer

Search Only Blog Posts in WordPress Search

If you’ve ever found yourself frustrated with the default search functionality in WordPress, you’re not alone. The default search tends to include blog posts and pages in its results, which may not be ideal for every website. If you want to refine your search results and focus solely on blog posts, we have a solution for you – the SearchPosts plugin.

What is the SearchPosts Plugin?

The SearchPosts plugin is a simple and lightweight plugin designed to enhance the search experience on your WordPress site. WordPress includes blog posts and pages in its search results by default. However, with the SearchPosts plugin activated, the WordPress search will display only blog posts, excluding pages from the results.

How Does It Work?

The plugin leverages WordPress’s pre_get_posts filter to modify the search query before execution.

Why Use the SearchPosts Plugin?

Improved User Experience:

By narrowing down search results to blog posts only, you provide your visitors with a more focused and relevant search experience. This can lead to increased user satisfaction and engagement on your site.

SEO Benefits:

Search engines value relevant and targeted content. By excluding pages from search results, you can optimize your site’s search engine optimization (SEO) efforts. This may lead to higher rankings and better visibility in search engine results pages (SERPs).

Installing the SearchPosts Plugin

  1. Download the Plugin: You can download the SearchPosts plugin
  1. Upload to WordPress: Log in to your WordPress admin dashboard, navigate to Plugins -> Add New, and click “Upload Plugin.” Select the plugin zip file and click “Install Now.”
  1. Activate the Plugin: After installation, click “Activate Plugin” to enable the SearchPosts functionality on your site.


If you want to enhance your WordPress site’s search functionality and provide a more streamlined experience for your visitors, the SearchPosts plugin is a valuable tool. By focusing on blog posts and excluding pages from search results, you improve user satisfaction and potentially boost your site’s SEO. Download and activate the SearchPosts plugin today to take control of your search results and provide a more targeted user experience on your WordPress site.

Accelerate your growth with our purpose-built, high-caliber engineering teams that deliver solutions from startups to small/mid-size enterprises.

Quick Links
Find Us

© Copyright 2024 BinaryPlane. All Rights Reserved.