📍 Deliver to Delhi NCR
🚚 Free delivery above ₹499

WordPress Category Search Plugin – AJAX Search for WooCommerce

Most WordPress search plugins treat your site like a blank slate they drop in their own category dropdowns, rebuild your query, and often fight with the filter you’ve already spent hours configuring. SCSS Category Search does the opposite: it’s a lightweight, shortcode based search bar that searches only inside the category your existing filter already has active. It never renders its own category dropdown unless you want it to, and it never touches your existing filter code.en-gb.wordpress+2

If you run a blog with category archives, a WooCommerce store with product category filters, or a custom post type directory with taxonomy-based navigation, this plugin gives you instant, AJAX-powered search that actually understands where your visitor is already browsing.

The Problem SCSS Category Search Solves

In 2026, WordPress and WooCommerce site owners face a familiar frustration:

  • Search ignores your active filter: Visitors land on a category page, apply a filter, then type into a search bar—only to get results from all categories, breaking their context.flycart+1
  • Heavy plugins that rebuild everything: Popular solutions like FiboSearch, Ajax Search Lite, or Beplus add their own filter UI, duplicate functionality, and often conflict with your theme or page builder.wordpress+2
  • Crawl-budget waste from faceted URLs: Poorly handled filter + search combinations spawn thousands of indexed parameter URLs that dilute your SEO.
  • Complex setup for simple needs: You just want a search bar that respects your existing category filter—not a full-blown faceted navigation suite.

SCSS Category Search is built for the 80% of sites that already have a working category filter and just need search that plays nice with it.

Open to all this plugins also on GIThub:-
you need repo click to this link – https://github.com/scss-live/plugins/

How SCSS Category Search Is Different

Unlike most search plugins, SCSS Category Search detects your active category automatically and limits search results to that term. Here’s what sets it apart:

  • Zero interference with your existing filter: The plugin reads your active category from the URL, query vars, or your existing filter’s CSS selector but never modifies or overrides it.en-gb.wordpress+1
  • Optional in-bar category dropdown: A small dropdown inside the search bar shows the currently active category (preselected) and lets visitors narrow further without reloading the page or driving your main filter. Hide it entirely if you prefer pure auto-detection.wordpress+1
  • Universal taxonomy support: Works with category, product_cat, or any custom taxonomy you’ve registered. Just set taxonomy and post_type in the shortcode.wordpress+1
  • Lightweight, single-file deployment: The entire feature lives in one PHP file with inlined CSS and JS. No heavy admin panels, no database bloat.wordpress

Think of it as the “search bar that finally gets your category filter” not a replacement for it.

Why Context-Aware Search Matters for SEO and Conversions

Search that respects your visitor’s context isn’t just a UX nicety it directly impacts engagement and crawl efficiency:

  • Lower bounce rates: Visitors who stay within their chosen category find what they need faster and are less likely to abandon your site.
  • Crawl budget protection: By avoiding reload-based filter + search combos that generate thousands of parameter URLs, you keep Googlebot focused on your real category and product pages.
  • Better conversion paths: WooCommerce shoppers who search within their selected category (e.g., “T-Shirts” instead of all products) convert at higher rates because results are immediately relevant.flycart+1

In short: context-aware search reduces friction, protects SEO, and helps visitors buy or read more.

How to Install & Use SCSS Category Search

Installation (Two Options)

Option A – As a plugin (recommended):

  1. Create wp-content/plugins/scss-category-search/
  2. Upload scss-category-search.php
  3. Activate via Plugins → scss Category Search

Option B – In your child theme:

  1. Open your child theme’s functions.php
  2. Copy everything from scss-category-search.php below the if ( ! defined( 'ABSPATH' ) ) { exit; } line
  3. Paste at the end of functions.php (don’t paste the second <?php)

CSS and JS load only on pages where the shortcode runs nothing else is enqueued.

Basic Usage

Drop the shortcode above your existing category-filtered list:

text	

Or in a PHP template:

php<?php echo do_shortcode( '	
' ); ?>

Results appear directly under the search bar; your existing category list below stays untouched.

Advanced Usage (WooCommerce or Custom Post Types)

Target WooCommerce products or any custom post type with parameters:

text	

Key shortcode attributes:

AttributeDefaultPurpose
taxonomycategoryYour taxonomy (e.g., product_cat)
post_typepostPost type to search (e.g., product)
posts_per_page10Results per request (max 50)
min_chars2Characters typed before searching
filter_selector(empty)CSS selector of your existing filter control
show_category_filteryesShow/hide the in-bar category dropdown
show_excerptyesShow excerpt under each result
show_thumbnailyesShow featured image thumbnail

The dropdown inside the bar is preselected with your active category, so visitors see where they’re searching and can narrow without leaving the bar. Changing it re-runs AJAX instantly no page reload, no interference with your main filter.en-gb.wordpress+1

How It Detects Your Active Category (Three Ways)

SCSS Category Search finds your active category automatically:

  1. From the page/URL: Reads queried terms on category archives, or query-string keys like scss_category, category, cat, category_name, etc.wordpress
  2. From your existing filter control: Pass filter_selector="#category-filter" and the script listens for change or click events on your filter’s dropdown, radios, checkboxes, or links without modifying them.en-gb.wordpress+1
  3. From your own JS: Dispatch a scss:category-changed custom event if your filter is fully custom.

If nothing is detected, the bar searches all content for that post type and shows “All categories” as the scope.

Frequently Asking Questions (FAQs)

Does this plugin conflict with my existing category filter?

No. It only reads your active category it never changes, rebinds, or overrides your filter’s behavior.en-gb.wordpress+1

Is it compatible with Elementor, Divi, or other page builders?

Yes. Because it’s shortcode-based, it works anywhere shortcodes are supported including Gutenberg, Elementor, Divi, WPBakery, and Oxygen.

Do I need to know PHP or JavaScript to use this?

Not at all. The basic shortcode works out of the box. Advanced parameters and hooks are optional for developers who want more control.wordpress

Will this work with my custom post types and taxonomies?

Absolutely. As long as your post type and taxonomy are registered in WordPress, you can target them using the post_type and taxonomy parameters.