WordPress.org

Ready to get started?Download WordPress

Forums

Unable to have the same name for category base and page that already exists (2 posts)

  1. pixelmechanic
    Member
    Posted 3 years ago #

    Quick question—this is a tricky one.

    I want to have my URLs structured so “blog” is in the category base, ie; blog/categories/postname

    Only problem is, when I restructure the URLs in the WordPress administration panel to do this, there is a conflict and when I try to view the individual blog posts, I get a 404 error. There is some sort of conflict going on because I already have “blog” as an individual page and I am also using “blog” as the category base.

    If I then restructure the URLs to posts/categories/postname it works fine.
    Is there a way that I can have both a “blog” page and the word “blog” as the category base, without it stuffing up?

    This would help in my aim of keeping the my blog posts separate from my site's content, also I think it makes the sites navigation a bit more usable.

    Any ideas?
    Thanks!

  2. stvwlf
    Member
    Posted 3 years ago #

    No, you can't do that in WordPress.

    Look into using query_posts to display your blog posts on the page with the permalink of blog instead of trying to display the blog page as a category page. That approach works very well. you will have URL's of
    /blog/postname

    http://codex.wordpress.org/Template_Tags/query_posts

Topic Closed

This topic has been closed to new replies.

About this Topic