1

I have a small e-commerce site in WordPress and I am having some difficulties in getting the right permalink structure.

Basically, for basic pages it should look like: domainname.com/page_title

Other post types should have the structure: domainname.com/post_type_slug/item_title

Everything is fine except for the blog posts. I want it to look like: domainname.com/blog/post_title

Having the permalink setting as %postname%, I get domainname/post_title. On the other hand, /%category%/%postname% returns domainname.com/category/post_title. Obviously, entering /blog/%postname% won't work either because that would affect the permalinks of other post types.

Any ideas? Thanks in advance.

1
  • 1
    You don't specify if you're using regular WordPress pages/posts or if you're using a plugin such as WP e-commerce or WooCommerce. Can you clarify this?
    – Steve
    Commented Nov 4, 2012 at 14:09

1 Answer 1

0

Actually, /blog/%postname% is the correct setting for permalinks in this case. The /blog/ portion of the permalink will only be added to custom post types if they have been registered using the rewrite => with_front parameter set to true.

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.