Set category to be used in URL when assigning 2 or more categories to a post

  1. thirstcard

    Currently the category with the lowest ID gets used in the URL when assigning more than two categories to a post.

    Would be nice to be able to choose which category gets used in URL.

    For example

    I assign 3 categories to a post

    1. Bars (ID is 3)
    2. Restaurants (ID is 16)
    3. Hotels (ID is 7)

    With default behaviour of WP, the URL will look like this as "bars" has the lowest ID so gets used in the URL:


    Posted: 4 years ago #
  2. anca dumitru

    Hello Henry!

    I had the same problem as you and I used "Hierarchical URLs" plugin.
    You can view more details here:

    Posted: 3 years ago #
  3. Albert

    Hello, I have the following problem.

    I have a post type called house.

    I am trying to have the url like this


    The problem is that the result for %category% is not the category name, but the post name house, which makes it wrong.

    Do you have any ideas on how to solve this or why is it happening?


    Posted: 2 hours ago #

RSS feed for this topic


You must log in to post.

  • Rating

    10 Votes
  • Status

    This idea is under consideration