WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 21 months ago

#17575 closed enhancement (invalid)

Let some post be another's children although they're of different custom post types

Reported by: fonemi Owned by: Gokhan Ozturk
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: needs-patch needs-ui dev-feedback
Focuses: Cc:

Description

Think like a scenario :

I have two custom post types, one is "Product" and the other is "Video".

Exactly what I want is to add a new "product" as parent post, and add new "video"s as its children. And a permalink should be http://my_site_address/my-product/my-video/, and the other http://my_site_address/my-product/my-other-video/

Change History (3)

comment:1 SergeyBiryukov3 years ago

Looks like plugin material to me at this point.

Or maybe "Product" should be a custom taxonomy instead, combined with /%category%/%postname%/ permalink structure.

comment:2 nacin3 years ago

The post type API supports this. You just can't do it using the UI or with our built-in post type rewrites.

comment:3 nacin21 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.