Display product category by ID
-
I can display a Woocommerce product in browser by its ID by appending /?p=123
For example: http://www.shop.com/?p=123I would like to do the same with product category, something like this: http://www.shop.com/?product_cat=123
Reason: Slugs can be changed, which means the URL changes, which is bad for existing links, which are then broken. IDs stay the same, no matter if the slug is changed.
What is the correct syntax to do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display product category by ID’ is closed to new replies.