Support » Fixing WordPress » Category slug and page slug the same… which one wins?

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    I’ll try it, thanks.

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

    Can anyone confirm/disprove this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category slug and page slug the same… which one wins?’ is closed to new replies.