説明
Displays WooCommerce product categories (main category, subcategory, and
third-level category) as a collapsible accordion list, or as a dropdown
select filter — your choice.
This plugin combines both an accordion list and a jump-to dropdown
in a single lightweight widget/shortcode, with per-category show/hide
control (including all descendants) and a configurable maximum depth,
without any external service dependency — just plain CSS/JS and core
WooCommerce/WordPress functions.
Features:
- Two display styles — collapsible accordion list or a dropdown select box that jumps straight to the chosen category.
- Widget — add “Manojsprinix Category Filter for WooCommerce” from Appearance > Widgets (via the Legacy Widget block, or directly on classic widget screens).
- Shortcode —
[mscfw_product_categories]usable on any page, post, or page builder. - Admin settings page (“Category Widget” in the left menu) to:
- Switch between List and Dropdown display style.
- Choose accordion (click to expand) or always-open hierarchy display (List style).
- Show/hide the product count next to each category.
- Set the active/current category highlight color.
- Set maximum depth (3 = main + sub + third level, or 0 for unlimited).
- Show or hide individual categories (and their children) from the output.
This plugin only requires WooCommerce to be active — it does not depend on
any specific theme or third-party plugin, so it can be copied to any
WordPress + WooCommerce site and activated directly.
Developed by manojsprinix.
インストール
- Upload the plugin folder to
/wp-content/plugins/, or install the zip via Plugins > Add New > Upload Plugin. - Activate the plugin from the Plugins screen.
- Go to “Category Widget” in the admin menu to configure display style and category visibility.
- Add the widget from Appearance > Widgets, or use the
[mscfw_product_categories]shortcode anywhere.
FAQ
-
Does this require WooCommerce?
-
Yes. The plugin will show an admin notice and stay inactive if WooCommerce is not installed and active.
-
List or Dropdown — what’s the difference?
-
List shows a full expandable/collapsible category tree (like a sidebar menu). Dropdown shows a single select box; choosing a category immediately takes the visitor to that category’s shop page — useful in tight spaces like a header or a narrow sidebar.
-
Can I show unlimited category levels?
-
Yes, set “Maximum Depth” to 0 in the admin settings page for unlimited levels (List style only). Default is 3.
-
Can I hide specific categories?
-
Yes, uncheck them in the “Category Visibility” section of the admin settings page. Hiding a parent category also hides its children from the widget/shortcode output, in both styles.
-
Does clicking a category filter products?
-
Yes. In List style, clicking the category name navigates to that category’s normal WooCommerce archive page; clicking the arrow icon on the right only expands/collapses subcategories without navigating. In Dropdown style, selecting a category immediately navigates there.
評価
このプラグインにはレビューがありません。
貢献者と開発者
Manojsprinix Category Filter for WooCommerce はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。
貢献者変更履歴
1.1.1
- Renamed the plugin (display name, slug, and all identifiers) to remove an unaffiliated trademark reference.
- Removed an unsupported comparative claim from the description.
- Fixed an inline
<style>tag on the admin settings page to usewp_add_inline_style()instead. - Renamed the shortcode tag to a plugin-specific, prefixed tag to avoid collisions with other plugins.
1.1.0
- Added: Dropdown display style, as an alternative to the accordion list.
- Fixed: Active-category color customization being silently overridden by a hardcoded CSS value.
- Fixed: Stylesheet/script not reliably loading on the frontend due to being enqueued too late.
- Fixed: Hiding a parent category did not hide its children in the Dropdown style.
1.0.0
- Initial release.