I want to add all the blog posts to the /blogs/the-post-name type structure. I can do this through the permalinks settings with:


but this also affects custom post types resulting in a


How can i add all posts into the blogs folder without adding all my custom post types into the blogs folder?

1 Answer 1


When registering the custom post types, set with_front to false:

        // ...etc.
        'rewrite' => [
            'with_front' => false,

The post type URL will then not include anything extra you've added in the Permalinks settings.

  • worked perfectly thanks Jacob. Commented Jul 27, 2020 at 4:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.