How do I create a WooCommerce rating filter?
Published
Use a Custom Postmeta Range filter:
- Create a Super Speedy Postmeta Range filter.
- Use meta_key
_wc_average_rating(include the leading underscore). - Use the Text Links display option.
- Add 5 ranges: 4 to 5, then 3 to 4, and so on.
- In each range’s text box, paste the star HTML from your site (5 stars, 4 stars, etc.), or choose an image per rating.
If HTML stars are fiddly, paste these as text instead: ★★★★★ / ★★★★ / ★★★ / ★★ / ★.
Still stuck? Post a screenshot on our Discord.
Further reading
every other known problem and its fix.
setting up and configuring the filters.
Comments