I have a custom post type in WordPress with custom meta boxes.
So I need a hierarchal post and also have a custom template set for each of the post (either Type1 or Type2).
This is how my slug looks,
http://example.com/taxonomy/type1 – for the primary post
http://example.com/taxonomy/type1/type2 – for the secondary post
The problem is that the type 2 page is essentially the same as the type1 just with a bit of additional information. And my client plans to have many posts in type1 which will lead to more posts in type2 and this will make managing hard.
I can save all the content I need for type2 posts within the parent type1 using meta boxes. I just need a way to point the URLs to the right data.
So if I access this URL,
Read more here: Get slug to point to different content of the same post