我有一个主要案例研究页面,我想在列表中显示每个案例研究中的类型页面的图像。我有以下代码:
<div class="CaseStudyOverview" id="CaseStudyOverview">
<div class="CaseStudyOverview-Contents">
<?php while ( have_posts() ) : the_post(); ?>
<div class="CaseStudyPic-left">
<div class="CaseStudyRightButton">
<?php
$photo = get_field('casestudy_image');
$pic = get_field('casestudy_platform_image');
?>
<img src="<?php echo $photo['url']; ?>" />
<a href="<?php the_field('case_studies_go_to_button_link'); ?>" class="make-Button--link"><?php the_field('case_studies_go_to_button'); ?></a>
</div><!-- end of CaseStudyRightButton -->
<div class="CaseStudyLeftPic">
<img src="<?php echo $pic['url']; ?>" />
</div><!-- end of left-pic -->
</div><!-- end of content-left -->
<?php endwhile; ?>
</div><!-- end of CaseStudyOverview-Contents -->
有什么遗漏?