Rewriting hierarchical post type

No, this is not possible. Only pages and posts are able to work without a permalink base. When working with custom post types, you always have a permalink base. That’s just how WordPress works. And the third line of your example can’t work when country is already a child of region, because the parent-child relation … Read more

how to create child posts with parent post in wordpress?

first you can know the relationship between child post and parent post try to figure it out or just try this code $query = new WP_Query( array( ‘post_parent’ => get_theID(), ‘posts_per_page’ => 3, //shows only 3 children. If you want to show all of them, comment this line )); while($query->have_posts()) { $query->the_post(); /*Output the child … Read more