WordPress.org

Forums

Blog URL's (2 posts)

  1. duncmorley
    Member
    Posted 4 years ago #

    I am having a few issues trying to set up a URL structure. I am setting up my website and the blog is to be 1 section of the website. I want the URL structure for anything to do with the blog to start with blog/. For example:

    Blog homepage: http://www.domain.co.uk/blog/
    Post single: http://www.domain.co.uk/blog/2011/03/post-title/
    Category/Archive/Tag/Author: http://www.domain.co.uk/blog/category/

    I have tried adding the category of "blog" to each post and that makes everything work except the main post page where the URL is http://www.domain.co.uk/blog/blog/

    I can't quite get it to work throughout. All suggestions are welcome.

  2. duncmorley
    Member
    Posted 4 years ago #

    Just figured this one out as well.

    1. Set the custom structure to: /blog/%year%/%monthnum%/%postname%/

    2. Create a category called "Blog". Add any other categories you wish and make them a child of "Blog"

    3. Assign your posts to as many categories as you want always making sure that "Blog" category is selected also.

    4. Withinn your custom menu, add the category of "Blog"

    5. Download, install & activate a plugin called "FV Top Level Categories" (3.1) or "Top Level categories" (3 and below). Or alternatively, create a function that removes the top level category.

    And you are done. Clicking on the nav menu called "Blog" will take you posts homepage:
    http://www.domain.co.uk/blog/

    The post page will be structured as:
    http://www.domain.co.uk/blog/2011/03/post-name/

    The category page will be structured as:
    http://www.domain.co.uk/blog/category-name/

    Archives will be structured as:
    http://www.domain.co.uk/blog/2011/03/

    Author will be structured as:
    http://www.domain.co.uk/blog/author/author-name/

    Tags will be structured as:
    http://www.domain.co.uk/blog/tags/tag-name/

    Hope this helps anyone who needs it.

Topic Closed

This topic has been closed to new replies.

About this Topic