DEV Community

tranminhdz
tranminhdz

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)

https://vip-restaurant.vamtam.com/shop-home/#tab-1-5-breakfast

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)