WordPress.org

Ready to get started?Download WordPress

Forums

Category with lowest ID takes priority in post URL (4 posts)

  1. Henry
    Member
    Posted 2 years ago #

    If I assign a post to 2 different categories - is there a way to prioritise which category gets used in the post URL?

    Currently, it seems the category with the lowest ID is used as the default for the URL.

    For example. My events category has an ID of 5 and my Employees category has an ID of 28. A post that has been assigned to both categories "Events" and "Employees" will end up with the following URL:

    http://www.example.com/EVENTS/post-title/

    I'd like to be able to tell WordPress "no, stop taking the category with the lowest ID and use the category I tell you too - that's a good boy"

    Hope someone can help :}

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    is there a way to prioritise which category gets used in the post URL?

    Not as far as I am aware.

  3. Henry
    Member
    Posted 2 years ago #

    Thanks @esmi

    Perhaps someone knows of a way?

  4. creative_lounge
    Member
    Posted 1 year ago #

    You may have already found the solution, but if not take a look at this plugin, that will solve your issue.

    http://wordpress.org/extend/plugins/hikari-category-permalink/

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic