How do I display child post types in the parent post type using custom post type?

I have a custom post type called customer_care which uses a template called customer-care.php.

I have created a new customer_care called contact us and created a child of this called office address.

How do I get the permalink of office address children to display on the contact us (customer-care.php).

How show parent post and after child post and after click show content.

I am also use data-id & jquery.

I would greatly appreciate any help provided!

Read more here: How do I display child post types in the parent post type using custom post type?

Leave a Reply

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