Let’s look at the simple example of a eshop on WordPress.
The shop has custom post type
product and category for products
product_cat. By default product links looks like
If you read this post, you should know something about WP_Rewrite class. It allows you to change WordPress permalinks rewrite reules, change the structure of them.
In this post I won’t use WP_Rewrite, I just want to show you another way of