WordPress.org

Ready to get started?Download WordPress

Forums

Category slug and page slug the same... which one wins? (4 posts)

  1. jsherk
    Member
    Posted 5 years ago #

    Just out of curiosity, if I have Page slug called 'events' and I also have a Post Category called 'events' as well, and my permalinks are set to /%category%/%postid% which one will win... the Page slug or the Category slug? Is it just based on which one comes first in the database?

    Thanks

  2. Samuel B
    moderator
    Posted 5 years ago #

    starting permalinks with
    %category%
    to start is redundant as wordpress assumes this already on category views so you are running a lot of extra queries
    just use
    %postid%
    or
    %postname%
    and you won't need to worry about it

  3. jsherk
    Member
    Posted 5 years ago #

    I'll try it, thanks.

  4. Matt Hill
    Member
    Posted 4 years ago #

    My research has shown that Pages take precedence over Categories when they both share the same slug.

    Can anyone confirm/disprove this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.