WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. devoninternational
    Member
    Posted 2 years ago #

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

    For example:

    http://www.domain.com/top-five-companies/
    to
    http://www.domain.com/blog/top-five-companies/

    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
    Member
    Posted 2 years ago #

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

  3. devoninternational
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

  5. Dwenaus
    Member
    Posted 1 year 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 1 year ago #

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

    http://codex.wordpress.org/Using_Permalinks

    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

Tags

No tags yet.