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'm trying to figure out how to accomplish the following:

http://www.mydomain/blog/my-blog-post/

I'm using the /%postname%/ for my permalink structure, but this eliminates the "/blog/" from all posts that are technically blog only.

Is there a way to ensure that "/blog/" is within the URL structure for regular Posts?


In addition, is there a way to REMOVE the post type slug from the URL for a Custom Post Type?

share|improve this question
add comment

2 Answers 2

For sure. Just set your structure to: /blog/%postname%/ or /blog/%category%/%postname%/. Permalink structure is only for posts ;D

share|improve this answer
    
One thing though ... what about Custom Post Types? I don't want /blog/ to be apart of their URLs... –  dcolumbus Jul 27 '12 at 22:37
    
But /blog/ will show only in posts.This is not what you need? –  Brightweb Jul 28 '12 at 2:34
    
Sorry, let me clarify ... I want "/blog/" to be apart of the URL for the generic "post" type ... however, for custom post types, I do NOT want "/blog/" to be a part of the URL. So the only time "/blog/" shows up in the URL is when browsing the generic "post" type. –  dcolumbus Jul 31 '12 at 0:19
add comment
up vote -1 down vote accepted

I've come to accept that this is just not possible with WordPress. You MUST have a slug for a custom post type.

share|improve this answer
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.