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

  1. Jeff Sherk
    Posted 7 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?


  2. Samuel B

    Posted 7 years ago #

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

  3. Jeff Sherk
    Posted 7 years ago #

    I'll try it, thanks.

  4. Matt Hill
    Posted 6 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


No tags yet.