Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have several custom post types, which are properly structured as /%post_type%/%postname%/, however I wish to have the same effect for regular blog entries: /blog/%postname%/

If I prepend the permalink structure with /blog/ it affects the custom post types as well, so currently my permalink structure is simply /%postname%/

Which is the recommended way of doing this? I had a solution involving some rewrites, but the permalink shown in the post editor area does not reflect it.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Set the 'with_front' parameter for the post type’s slug to FALSE:

'rewrite'    => array (
    'slug'       => 'posttypeslug',
    'with_front' => FALSE
),
share|improve this answer
    
Great answer thank you so much! Was wracking my brain on this one. –  Jake Rocheleau May 4 '13 at 21:26
add comment

Your Answer

 
discard

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.