0

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/
5
  • what establishes a post as being part of the blog versus a post that isn't?
    – Milo
    Jun 22, 2012 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, 2012 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, 2012 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, 2012 at 16:54
  • that's just the way it works. you can achieve what you're after via the permalink settings.
    – Milo
    Jun 22, 2012 at 17:07

2 Answers 2

1

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

4
  • Yes, but this would make the entire site display /blog/, no?
    – dcolumbus
    Jul 2, 2012 at 17:01
  • no, just posts. pages don't use posts permalink structure.
    – Milo
    Jul 2, 2012 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, 2012 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, 2012 at 19:30
0

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

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.