Home » Php » php – WooCommerce price filter doesn't work in custom theme

php – WooCommerce price filter doesn't work in custom theme

Posted by: admin February 25, 2020 Leave a comment

Questions:

Other filters such as categories and custom attributes do work, but not the price range. Some more details:

  • It does work within standard themes, such as twentytwenty
  • I tried disabling all other plugins and custom functions in functions.php
  • URL updates correctly, e.g. localhost:8010/?min_price=30&max_price=60&product_cat=misc&filter_training-type=yoga

I am not sure where to look within my theme’s code; any hints or clues are welcome.

How to&Answers: