Forums

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
    Posts
  • #30599
    Hayley
    Member

    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 :-(

    #77815
    TheDoc
    Member

    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.

    #77616
    Hayley
    Member

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

    http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress#comment-193761
    http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress#comment-188191

    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: http://test.deercreekplans.com

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