use loop to return blog details
You need to re-arrange your code. <?php $post_id = 20; while($post_id <= 25) { $queried_post = get_post($post_id); $author_id = $queried_post->post_author; echo get_the_author_meta(‘display_name’, $author_id); $post_id++; } ?> Within while loop above you have $queried_post which is an object of class WP_Post. Member Variables of WP_Post can be used to display data about each post. I hope … Read more