特定の WordPress カテゴリの投稿のタイトル、画像、および抜粋を取得したいと考えています。以下のコードを使用して、特定のカテゴリの投稿タイトルを取得しています。
global $post;
$myposts = get_posts('numberposts=5&category_name=Cooling Towers');
foreach($myposts as $post) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
特定のWordPressカテゴリの投稿画像と抜粋を取得するにはどうすればよいですか?