How to custom the slug
-
Hi CPT UI team, I’m going to create my websites(by Elementor) with different product categories, like basketball, football, baseball, etc. The product link should go as http://www.aaa.com/basketball/basketball-001/. How to achieve that?
I’ve made “products” as a new post type with Taxonomies. However, all the product links go like http://www.aaa.com/product-item/basketball-001, as the Custom Rewrite Slug is set as “product-item”.
I’ve also created different categories for the “products” post type. On the category page, the product category slugs go as the correct ones like “basketball” “football” and “baseball”, but I don’t know how to match the products with these categories and display them on the links correctly. (The product links all go as http://www.aaa.com/product-item/backetball-001/ as mentioned above.)
Looking forward to your early reply to solve my problem, really appreciate it! : )
BR
Frank Smith
The topic ‘How to custom the slug’ is closed to new replies.