Multiple Category Selection Widget
v4.0.0zackdesign · 2008年8月23日 上架
Filter posts by selecting multiple categories using dropdown menus. Available as a widget, block, or shortcode.
- 正在使用
- 100+
- 评分
- 2.9 / 5
- 累计下载
- 7.9 万
- 最近更新
- 2026年2月23日
14 条评价需要 WordPress 6.0+已测试到 6.9.12PHP 7.4+
贡献者
Turn your WordPress post categories into a search powerhouse! This plugin gives you a set of dropdown menus based on parent categories and their sub-categories. Users select one sub-category per parent, and the plugin filters posts matching the selected combination.
Available as:
- Gutenberg Block — “Multi-Category Filter” in the block inserter (new in v4)
- Classic Widget — “Multi-Category Selection” in Appearance > Widgets
- Shortcode —
[mcsw]on any page or post
Features:
- AND / OR category filtering — find posts matching ALL or ANY selected categories
- AJAX chained drilldown — selecting a parent dynamically loads its children
- Pretty permalink URLs (
/categories/3,5/search_type/and/order/title/) - Ordering by title or default
- Configurable blank search behavior
- Exclude specific categories
- Lightweight — no jQuery, no external dependencies
- Pagination support
- Display form above results on category pages (optional)
Sample use case:
Real estate — set up parent categories like “Bedrooms”, “Bathrooms”, “Price Range” with sub-categories beneath them. Users filter listings by selecting from each dropdown.
Upgrading from v3.x:
- PHP sessions have been removed entirely — the URL now carries all state, which means better compatibility with caching plugins, load balancers, and modern hosting
- jQuery has been replaced with vanilla JavaScript
- CSS classes have changed from
wpmcsw/wpmmto BEM-stylemcsw-*classes — update any custom CSS - The old
select-chain.jsin the plugin root has been replaced byjs/select-chain.js