Skip to content

🌳 Feature Request: Nested Custom Post Types with Automatic Hierarchy and URL Management #488

Description

@BarochiyaYash

WordPress currently allows hierarchical Pages and hierarchical posts within a single Custom Post Type, but it does not support nested Custom Post Types.

For large websites such as IT companies, agencies, product catalogs, documentation websites, universities, and enterprise websites, developers often need to create multiple related Custom Post Types and manually connect them using taxonomies, relationship fields, or custom code.

This makes the website structure more complex to manage and requires additional configuration in page builders such as Elementor and other.

Example

An IT company website may have the following service hierarchy:

Services
└── Website Development
├── WordPress Development
│ ├── Custom Theme Development
│ ├── Custom Plugin Development
│ ├── WooCommerce Development
│ └── Website Maintenance

├── Shopify Development
├── Webflow Development
├── Laravel Development
└── React Development

Desired URL Structure
/services/

/services/website-development/

/services/website-development/wordpress-development/

/services/website-development/wordpress-development/custom-theme-development/

/services/website-development/wordpress-development/custom-plugin-development/

/services/website-development/wordpress-development/woocommerce-development/

Automatic Features

  1. Automatic parent/child relationships
  2. Automatic permalink generation
  3. Automatic breadcrumbs
  4. Automatic hierarchy detection
  5. Easier querying of parent and child content
  6. Better Elementor template support
  7. Better organization inside the WordPress admin
  8. Hierarchy-aware template conditions
  9. REST API support
  10. Easier filtering
  11. Dynamic navigation

Benefits

  1. Less custom code
  2. Easier content management
  3. Better scalability for large websites
  4. Cleaner URL structures
  5. Easier template management
  6. Better developer experience
  7. Better content organization

Use Cases

  1. IT company websites
  2. Digital agencies
  3. Product catalogs
  4. Documentation websites
  5. Knowledge bases
  6. University websites
  7. Enterprise websites
  8. Service-based businesses

This would provide a much more intuitive way to build and manage complex website structures while reducing custom development work and improving compatibility with page builders.

This feature would simplify building complex content structures while keeping the WordPress admin easy to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions