| 开发者 |
neonus
shamotj |
|---|---|
| 更新时间 | 2025年12月8日 16:35 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[nwsfilter_product_filter] and [nwsfilter_selected_filters][nwsfilter_product_filter]
Display only selected/active filters:
[nwsfilter_selected_filters]
Or use PHP in your template:
<?php echo do_shortcode('[nwsfilter_product_filter]'); ?>
<?php NWSFILTER_Frontend::get_instance()->display_filter_form(); ?>
Configuration
.nws-filter - Main container.filter-group - Individual filter sections.filter-group.is-active - Active filter sections.range-slider - Price range slider.selected-filters-section - Selected filters section.filter-chip - Individual filter chip.nws-clear-filters - Clear filters button/wp-content/plugins/nws-filter/[nwsfilter_product_filter] or template functionsUse the shortcode [nwsfilter_product_filter] in any page or post, or add it to your theme template using <?php echo do_shortcode('[nwsfilter_product_filter]'); ?>
Yes! Use the shortcode [nwsfilter_selected_filters] to display only the active/selected filters with remove buttons. This is useful when you want to show filters in a different location or when you've hidden them from the main filter form.
In the admin settings (Settings > Product Filter), you can drag and drop the filter items to reorder them. The order you set will be reflected on the frontend.
Yes! The plugin includes comprehensive CSS classes that you can override in your theme's CSS file. All main elements have specific classes like .nws-filter, .filter-group, .range-slider, etc.
The filtering uses URL parameters and page reloads. The interface includes a loading indicator for better user experience.
Yes! In the admin settings, enable "Hide Selected Filters in Filter Form" and use the [nwsfilter_selected_filters] shortcode to display them elsewhere.
In Settings > Product Filter, check the "Auto-expand Parent Categories" option. This will automatically expand parent categories when viewing a subcategory.
The plugin requires WooCommerce 4.0 or higher and is tested up to WooCommerce 8.0.