New answers tagged

0

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>'; ...



Top 50 recent answers are included