How to filter products on the current woocommerce products category page using ‘self’


  • Install this plugin: https://wordpress.org/plugins/widget-logic/other_notes/
  • Create widget specially for filtering on product category page and set this options on this widget: 
  • In your main MDTF widget set 'Widget Logic' condition as: !isset($_REQUEST['MDF_IS_WOO_CAT'])
  • In your special MDTF widget for categories set condition: isset($_REQUEST['MDF_IS_WOO_CAT']) mdtf-tutorial-73
  • Open in your current WordPress theme archive-product.php file drop next code as on screen: 
  • In the same archive-product.php file drop next code as on screen: 
  • Note: this example doesn work in ajax mode
  •  Look the demo of this example