Forums

%tag% in permalinks doesn't work (3 posts)

  1. amplifiedshock
    Member
    Posted 1 month ago #

    Hello,

    I tried adding the %tag% to my custom permalink but it does not work. The URL will not show the tag, but %tag%. For example: http://www.website.com/%tag%

    Everything else such as %category% seems to work.

    Any help would be much appreciated.

  2. samboll
    moderator
    Posted 1 month ago #

    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    you can't use %tag% in your permalinks but can use it as the category base

  3. amplifiedshock
    Member
    Posted 1 month ago #

    That article seems to indicate that %tag% is an option for permalinks.

    To test this theory out, I MANUALLY typed the permalink with the tag in my browser and it worked perfectly.

    For example:

    My custom structure: /%year%/%category%/%tag%/%postname%
    Sample tag: hockey
    Sample category: sports

    The URL will than look like: http://www.website.com/2009/sports/hockey/chicago-blackhawks-win

    When I access this in the browser, it works fine.

    HOWEVER, when I click it from the blog, it returns this link: http://www.website.com/2009/sports/%tag%/chicago-blackhawks-win

    This obviously means the %tag% permalink works; it's just that WordPress isn't linking to it properly.

    Any help would be much appreciated!

Reply

You must log in to post.

About this Topic