How to show childs of certain custom post type in option list?
I have a custom post type and each post in this custom post type has many childs. I have a code that show every child that is child of the parent in child’s page. (parent: post 1 , childs: sub1-post, sub2-post. in sub1-post shows the sub1-post and sub2-post title and permalink)
the code is: