WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently my permalink structure for posts is


I'm using a static front page and a "blog" page for posts. I'd like to to change the permalink structure for posts, tags and categories to


I can easily add /blog/ in the permalink structure but the catch is that my custom post types also get this modified permalink structure and that is not the desired result.

Thanks in advance!

share|improve this question
up vote 2 down vote accepted

When you register your post type, the with_front argument of rewrite should be false, so the permastruct is not appended to the front of your custom post type permalink.

$args = array(
    // snip...
    'rewrite' => array( 'with_front' => false ),
    // snip...

register_post_type( 'your-post-type', $args );
share|improve this answer
Thank you very much! That did indeed seem to solve the problem. I wonder though, don't you think it's quite strange that WordPress doesn't include /blog/ by default if you're using a static front page and a posts page "blog"? Are there any advantages of using the permalink structure without the /blog/ ? – user2019515 Jan 28 '13 at 21:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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