Listing subpages title and content and styling the first iteration differently
you should use $wp_query to retrieve pages and posts because it’s the most efficient way and you can differentiate the loop with $current_post parameter which returns the index of the loop. It works like this <?php $args = array ( ‘posts_per_page’ => -1, //Showing all the pages ‘post_type’ => ‘page’, //Retrieving pages not posts. ‘post_parent’ … Read more