Remove CPT name from permalink but add %category% instead

We are currently developing a new wp theme and all the current posts are moved to a new CPT called products. For SEO the links to the products need to be remained.

The current structure of the post type is:

www.url.com/category-a/category-b/productname

After moving the items from the default post type to the new CPT the URL looks like:

www.url.com/products/productname

But we want to remain the default post structure for these posts. The archive pages show the products, so that’s working fine.

My permalink setting is:

/%category%/%pagename%

Read more here:: Remove CPT name from permalink but add %category% instead

Leave a Reply

Your email address will not be published. Required fields are marked *