| 开发者 | demfilz |
|---|---|
| 更新时间 | 2026年7月21日 07:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[dfaf_filters] shortcode on any page to show a filter form plus a results grid. Visitors can filter by your custom fields, by tags, categories or any taxonomy, by WooCommerce global attributes (pa_*) and even by custom per-product attributes.dfaf_field_types filter, adjust queries with dfaf_query_args, decorate option labels with dfaf_option_label and customise result cards with dfaf_result_card_html.
Pro version
Everything above is free and fully functional. For sites that want more, Fields and Filters Pro is a separate add-on plugin ($19.95 per year) that adds:
Global attributes are taxonomies named pa_something. Add them to the shortcode, for example: [dfaf_filters post_type="product" taxonomies="pa_colour,pa_size"].
Use the attributes parameter, for example: [dfaf_filters post_type="product" attributes="material"]. The plugin indexes custom attribute values automatically when a product is saved; run Rebuild attribute index in Settings to index products that existed before the plugin was installed.
Yes. List the field keys or taxonomies in the multi parameter and they render as checkbox lists, for example: [dfaf_filters post_type="product" taxonomies="pa_colour" multi="pa_colour"].
Yes. Use [dfaf_filters post_type="product" form_only="1" action="/shop/"] for the form, then enable Archive filtering in Settings so the shop archive applies the filters.
No. Values are stored as normal post meta and queried with standard meta and taxonomy queries. Custom product attributes are pre-indexed on save specifically so filtering never has to parse serialized data.
Field definitions are a single option; values are post meta prefixed with dfaf. On uninstall the plugin removes its options, and also the post meta if you opted in on the Settings page.
Yes. Fields and Filters Pro is a separate add-on plugin ($19.95 per year) that adds instant AJAX filtering, live result counts on filter options, colour swatch and star rating field types, and pill-style controls. See https://demfilz.com/fields-and-filters. The free plugin is complete on its own and never locks features.