Hi all,
I tried searching for info on trying to make a CPT a child of another CPT but couldn't find exact info.
Basically this is my scenario : I have a Product custom post type where users can add reviews(as comments). This page only displays the last 5 reviews added.
For actually adding more reviews, the user will have to click on a link on the page which takes you to a new custom post type (product_listing) which will then have a form to post new review and displays all the other reviews for this product.
So far its working fine, but the problem is mainly in the URL.
Product URL: localhost/products/product_A
Product Listing URL: localhost/productlisting/product_A_listing.
I would like to be able to make it so that it looks like:
localhost/products/product_A/productlisting/product_A_listing.
Newish to WP and web dev in general but slowly learning my way. Will i need to create a parent-child hierarchy between the two Custom post types to get this to work?
Thanks!