The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Custom Post Type with same slug as Page?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #30599

    Hi all! I just started using Custom Post Types, and I can’t seem to find any info on this situation:

    I have two custom post types in WordPress – ‘trapping’ and ‘taxidermy’.

    I also have two pages by the same names, plus their sub-pages. These page urls will no longer work.

    Is there any way to get around this? I really need them to be the same names. I’m pretty much stumped :-(


    Hmmmm… Off the top of my head, you’ll need to name one of them differently. That’s like having a category and a page with the same name, you’d have to give a different name to one of them.


    Hey, I figured out how to do it via these comments on Justin Tadlock’s Blog

    Basically, I created post type ‘trapping’, made a page called ‘trapping’ and set it to default template, 3) created a page-trapping.php file in which I loop through all the trapping post types.

    Here’s the site I’m working on:

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.