How to Add /blog/ Prefix to Posts, But Not to Custom Posts
-
Hi all,I want my WordPress site set up so that all blog posts appear under /blog/ (e.g. /blog/post-title/). I’d also like to know if it’s possible for blog categories to appear as /blog/category/category-name/, but this is optional.The main issue is:When I try to set the post permalink structure to include /blog/ in the WordPress settings, all my custom post types (like jobs, teams, FAQs, etc.) also inherit the /blog/ prefix in their URLs, which I don’t want. I need custom post types to keep their own unique slugs (e.g. /our-team/example/, /jobs/example/), without /blog/ in the URL.How can I set things up so that only blog posts use the /blog/ prefix, categories optionally use /blog/category/, but custom post types are unaffected?Thanks for any advice or best practices!
The topic ‘How to Add /blog/ Prefix to Posts, But Not to Custom Posts’ is closed to new replies.