Add "blog/" to URL for single posts (6 posts)

  1. devoninternational
    Posted 4 years ago #

    How can I add "blog/" to a URL only on blog posts?

    For example:


    I ONLY want "blog/" added on single posts, similar to how you can rewrite URLs for custom post types (or maybe there is a simpler/better solution).

    I've been looking quite some time for a solution, but to no avail. Thanks.

  2. Ben Sutcliffe
    Posted 4 years ago #

    Go to Permalinks and select Custom. At the beginning type '/blog'.

  3. devoninternational
    Posted 4 years ago #

    Yes, but that will add "/blog" to ALL single items, including cutom post types, which I do not want to do. I just want to add "/blog" to the blog posts, since those are the only blog items.

  4. devoninternational
    Posted 4 years ago #

    Is there another way to add "/blog" to just the blog posts and not all single pages or static pages?

  5. Dwenaus
    Posted 3 years ago #

    oddly enough this is not so easy. perhaps the best way to do it is to create a new custom post type called blog.

  6. Marvie Pons
    TutsKid Ninja
    Posted 3 years ago #

    Perhaps a /%category%/%postname%/ in permalink settings, then assign posts to a category called "Blog" with a 'blog' slug.


    Using %category% with multiple categories on a post

    When you assign multiple categories to a post, only one can show up in the permalink. This will be the lowest numbered category (see Manage Categories). The post will still be accessible through all the categories as normal.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.