This may be a stupid question but is it possible to have a post type child of another post type?

Let me explain with an example:

I created 2 post types, “Actors” and “Galleries”.

What i want is to create a new actor like “Winona Ryder” and a new gallery like “Winona Pictures”.

The adress in the browser bar should be;
www.mysite.com/actors/winona-ryder/galleries/winona-pictures

Also this should affect breadcrumbs as well.
I guess i have to play around with permalinks.

Can anyone take a look at this and tell me if this is possible?

Many thanks in advance. And sorry for any bad English

4 s
4

Attachments are post types someway, when you attach images to a post/page and display them in your post, you get a link like your-post-title/attachment/filename/.

Maybe you can create post types with hierarchical option and them filter the link to replace the attachment to post parent name instead.

Leave a Reply

Your email address will not be published. Required fields are marked *