WordPress.org

Ready to get started?Download WordPress

Forums

Setting Custom Post Type as Parent page to other pages and post types (2 posts)

  1. goatlip
    Member
    Posted 2 years ago #

    Hi, I'm getting a '404 page not found' when using a custom post type as a parent page for another page or post type.

    Here's the hierarchy:

    News (Custom post type)
    |- Reviews (custom post type)
    |- Newsletter (page)

    When I go to Reviews or Newsletter, I get the 404. Hierarchical is set to true for the custom post types. The only time it does work is if I change the Reviews and Newsletter parent to (no parent) or another page. That would be ok, but I need them to show up in the menu.

    Is there a way to use a custom post type as a parent page?

  2. goatlip
    Member
    Posted 2 years ago #

    Well, the work-around I have for now is this:

    News (page)
    |- Press Releases (custom post type)
    |- Reviews (custom post type)
    |- Newsletter (page)

    Not ideal, but allows me to see everything in the menu and doesn't give me a 404. Still, I'm wondering if it's possible to use a custom post type as a parent page.

Topic Closed

This topic has been closed to new replies.

About this Topic