• The permalinks I’m using for my blog is: /%category%/%postname%/

    For example, for this particular post, it has 2 categories – Category A and Category B.

    WordPress automatically has this post slug
    http://domain.com/category-a/post-title

    However, I want the post slug to use Category B instead
    http://domain.com/category-b/post-title

    Is there anyway to do it other than removing Category A from the post’s categories?

    Any help will be appreciated. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Both should work, but the default will always be the ‘lowest’ numbered cat.

    From Using %category% with multiple categories on a post, or %tag%

    When you assign multiple categories to a post, only one can show up in the permalink. This will be the lowest numbered category (see Manage Categories). The post will still be accessible through all the categories as normal.

    The same thing applies to using the %tag% field in your permalink structure.

    Thread Starter Truth

    (@truth)

    Oh, but I’m not table to change the post slug to use category B instead of A other than removing Cat A from the post. Is there anyway I can specify which one I wish to use?

    Thanks!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not per post, no, unless someone’s done a plugin for that.

    Thread Starter Truth

    (@truth)

    Right okay. Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problems with using tergory% in post slug’ is closed to new replies.