I created a custom post type called Products alongside by blog. My blog Archive URL is
www.mywebsite.com/blog
and the blog posts looks like
www.mywebsite.com/blog/postName.
My Products Custom Post Type URL looks like
www.mywebsite.com/blog/products.
I want would like to remove the blog directory from the url and make it look just like
www.mywebsite.com/products/productName
I can do this by removing the /blog/%postname%
from my permalinks in WordPress, but then my blog posts look like: www.mywebsite.com/postName
, without the blog directory.
How do I give my custom post types a clean URL without the blog directory?
Maybe it helps you. Do something like that —
Your Permalink will show like —