In my site the blogs resolve as %category%/%postname%
for now. However, I want the blog URLs to be /blogs/%postname%
. I know I could go to Permalinks and add blogs
as a prefix before %postname%
. However, I also have custom post types. What this does is add the blogs
prefix to the custom post types too. For example, I have a custom post type called whitepapers
and all those URLs resolve to whitepapers/%postname%
If I change the permalink structure as described above, it becomes blogs/whitepapers/%postname%
.
How do I change the URL structure only for the blogs
but let the custom post type be as they are?
/blogs/%postname%
and for your custom post types, set thewith_front
argument tofalse
to not include the/blogs/
in the CPT posts' permalink.