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.

In order to refrain from possible duplicate URLs or conflicting URLs, I really want to use "postname" for a clean URL structure, EXCEPT for the blog ... for the blog and it's posts, I always want /blog/ to be apart of the URL. This makes total sense, and I don't quite understand why it doesn't function like this when you specifically select a Page to represent the blog.

http://www.mydomain.com/this-is-a-page/

http://www.mydomain.com/blog/
http://www.mydomain.com/blog/my-blog-post/
share|improve this question
    
what establishes a post as being part of the blog versus a post that isn't? –  Milo Jun 22 '12 at 16:41
    
well, 1) it's a post and 2) the fact that I have to select a specific page to represent the blog and it's posts should be reason enough to use that pages permalink for all blog posts... –  dcolumbus Jun 22 '12 at 16:44
    
... That's the way WordPress is supposed to work if you use a specific page for the Blog and set up a different page as your Front Page. Is this how you have it set up? What permalink structure are you using? –  EAMann Jun 22 '12 at 16:50
    
Huh? I don't see the point of telling WP that the "blog" is on a certain page, yet the blog posts don't pull in the permalink from that page? –  dcolumbus Jun 22 '12 at 16:54
    
that's just the way it works. you can achieve what you're after via the permalink settings. –  Milo Jun 22 '12 at 17:07

2 Answers 2

up vote 0 down vote accepted

I've come to accept that this is just a limit of WordPress.

share|improve this answer

if your posts page is /blog/, then set your post permalinks to /blog/%postname%/

share|improve this answer
    
Yes, but this would make the entire site display /blog/, no? –  dcolumbus Jul 2 '12 at 17:01
    
no, just posts. pages don't use posts permalink structure. –  Milo Jul 2 '12 at 17:11
    
Is there a way to target JUST the generic "post" type? I mean, what about custom post types? I don't want a custom post type to display with a permalink of "/blog/" –  dcolumbus Aug 1 '12 at 18:34
    
when you register post types, you have the option to set the 'with_front' argument of rewrite to false. –  Milo Aug 1 '12 at 19:30

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.