Filter by product weight, product length, product width, product height, product custom fields, product ACF fields and much more!
The filtering will only work on WooCommerce pages (main WooCommerce shop page, archive product lists) etc. It will not function on custom product lists added to custom pages eg. via a 3rd party plugin or via shortcodes.
Watch the video demo on YouTube
On wp-admin, click on Appearance on the left menu and then on the Widgets submenu. Locate the “Filter products by Meta” widget and add it on the appropriate sidebar
On the widget options fill in the fields depending on your needs
Some hooks are in place. Please search the code for a full list. Below are some of them with examples.
You can make the filters display in every page you want. The code below will make them display on every page that has the containing sidebar.
add_filter( 'wmf_display_condition', 'my_wmf_display_condition'); function my_wmf_display_condition( $condition ) { return true; }
You can change the list of the filter types.
add_filter( 'wmf_filter_types', 'my_wmf_filter_types'); function my_wmf_display_condition( $types ) { $types['checkbox'] = __( 'Checkbox', 'wmf'); return $types; }
You may add your own behaviour on your filter type
add_action( 'wmf_widget_end', 'my_wmf_widget_end', 10, 7 ); function my_wmf_widget_end( $title, $valueslabel, $metakey, $filtertype, $orderby, $autorefresh, $values_array ) { // your code here }
Yes, you can.
Edit the product in wp-admin. On the top – right corner of the screen, click on “screen options” and make sure that “Custom Fields” is checked. Scroll to the custom fields metabox and add your custom meta data.
Read more on custom fields
You can put it on any sidebar on your website.
Some of the default filter fields are:
This plugin uses the following libraries
Published:
Jan 07, 2025 06:48 AM
Version:
Lastest
Category:
Tags: