WordPress.org

Ready to get started?Download WordPress

Forums

Blog links without 'category/' - need help (3 posts)

  1. Treebeard
    Member
    Posted 4 years ago #

    I know this is not recommended, but I need to make this happen. I needed to create a link in the header called 'Blog' so I changed the permalinks to the following:

    /%category%/%year%/%month%/%postname%/

    I have the category named 'blog' and the link in my menu is:

    <?php bloginfo('wpurl'); ?>/blog

    This works fine with the permalink structure, but...

    When I click on any Recent Posts in the sidebar, it doesn't work. The link adds the category name to the beginning, so it appears like:

    /blog/2009/08/test-post

    I'm hoping that the category can somehow be removed from the links maybe? Or is there a better way to remove /category/ from the URL so I don't need to hack anything?

    Thanks!!!

  2. Treebeard
    Member
    Posted 4 years ago #

    BTW, using version 2.8.4...

    thanks

  3. Treebeard
    Member
    Posted 4 years ago #

    I think I found a temporary hack that solves the issue for now:

    I changed the posts main category slug to 'main' instead of blog, so the links don't break anymore, and it doesn't look so bad showing /main/ in the url.

Topic Closed

This topic has been closed to new replies.

About this Topic