Custom post type with a post from a different custom post type
-
Hello
I was testing to see if it’s possible to have a post under a CPT acting as an archive for another CPT, a would be nested CPT.
I have a main page called Movies – /movies/
I have also a CPT called Movies, the post type slug set to “mvs”, has archive, the archive set to /movies/ and it’s post url changed to /movies/. So all posts under Movies CPT will be like /movies/something-post.
In the Movies CPT I have a post called “Harry Potter” and it’s url is /movies/harry-potter/
Now I’ve created a new CPT called “Harry Potter”, the post tyle slug set to “hrpt”, has archive set to /movies/harry-potter and it’s post url changed to /movies/harry-potter, so all posts under Harry Potter CPT will be like /movies/harry-potter/something-post.
Under this Harry Potter CPT I have created a post called “Summary” that would have the url /movies/harry-potter/summary.
This post returns a 404.
I can see the /movies/ acting properly as an archive.
I can also see the /movies/harry-potter acting properly as an archive.
But the posts under Harry Potter CPT return as 404.Is this not possible, or I am doing something wrong ?
Thank you.
- The topic ‘Custom post type with a post from a different custom post type’ is closed to new replies.