[wp-hackers] rewrite base/cpt-slug/page-slug collisions?

Otto otto at ottodestruct.com
Thu Jan 5 22:07:13 UTC 2012

On Thu, Jan 5, 2012 at 2:27 PM, Barrett Golding <bg at hearingvoices.com> wrote:
> in working on a Codex Docs page about Slugs,
> been doing some tests and core reading that seem to reveal what might be a bug --
> wanted to run it by y'all first to see if it's something i should i trac-ticket
> or if it's all intentional...

It's not a bug, you're just creating conflicts and expecting some kind
of magic to happen that simply isn't in there.

Don't create conflicting naming systems. If you use a slug for a
custom post type, you can't use it for a page on the same level, as it
will hide that page and all its children. Ditto for categories, tags,
or any other rewrite rule that outranks pages.

The base slug, when it's defined for a taxonomy or post type, takes
over that whole URL tree. No Pages can be in that tree any more. Or
rather, they can't be accessed any more. This isn't a bug, it simply
doesn't support that.


More information about the wp-hackers mailing list