How to populate a parent page with its child subpages and associated templates

You should look at archives.php. What you trying to do is create a custom post type loop (“pages) in different sections of your template. You have to filter by category, taxonomy, or tags to set up your different groupings. http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-post-types-archive-page-in-wordpress/ https://stackoverflow.com/questions/30883218/custom-post-type-wordpress-query-by-category I think this is what I mean: List all posts in custom post type … Read more

What code should I use to display children of a custom post?

wp_list_pages calls get_pages internally and pass the argument list to get_pages so you can pass arguments whatever get_pages accept. To display child posts on your single-{post_type}.php you need to call wp_list_pages with post_type parameter. wp_list_pages will ignore post_type but it will pass this to get_pages. Example:- echo ‘<ul>’; wp_list_pages(array( ‘post_type’ => ‘show’, ‘child_of’ => get_the_ID(), … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)