Forums

[resolved] Setting Category/Tag Slug to "." (3 posts)

  1. Adam
    Member
    Posted 7 months ago #

    Hi,

    I was looking for a way to remove the category and tag base slugs from permalinks. Plenty of Googling eventually got me to the simple answer of changing the category and tag base to be a period (.).

    This seems to work with categories not problem, url/categories/cat becomes url/cat and seems to work fine.

    For tags however url/tags/tag becomes url/tag but when trying to access it it results in the 404 page being displayed.

    I'm guessing I need to make a mod somewhere in wp_rewrite to fix this - can anyone confirm and point me in the right direction?

    Thanks,

    Adam M.

  2. Big Bagel
    Member
    Posted 7 months ago #

    Might be easier to use these two plugins:

    http://wordpress.org/extend/plugins/wp-no-category-base/
    http://wordpress.org/extend/plugins/wp-no-tag-base/

    Without using "category" and "tag" as a base it makes conflicts between pages, categories, and tags more likely, which can result in 404's.

  3. Adam
    Member
    Posted 7 months ago #

    Many thanks for that. I'd seen the no-cat-base plugin but for some reason didn't find the no-tag-one!

    Both work a treat and do just what I need.

    I know what you mean about possible collisions and will live with the risk for now, although I'll probably do some sort of plugin to detect it at design time for when its rolled out to the masses.

    Many thanks once again.

    Kind regards,

    Adam M.

Reply

You must log in to post.

About this Topic