DEV Community


Posted on

Tabs to change category wordpress woocommerce

I want to create category tabs where I can change products based on the chosen category. I would like the feature below (you can click on the category tab and the product will change)

One solution I can think of is I create a jquery tabs and use woocommerce shortcode. However, I am not sure if it is the correct way in wordpress

[products category="salad"]

In the example above, I can see that when changing the tab, the url changes as well. I dont know how to do it. Please help

Could you guys show me how to do it? Thanks very much

Top comments (0)