我想让它显示图像而不是帖子。用我网站上的图片替换帖子的语法是什么?我的代码当前显示while have post,然后显示帖子。我希望它是,而有图像,然后显示图像
<?php if (have_posts()) : global $loop_view; ?>
<?php get_template_part(\'loop-actions\'); ?>
<div class="loop-content switchable-view <?php echo $loop_view; ?>" data-view="<?php echo $loop_view; ?>">
<div class="nag cf">
<?php while (have_posts()) : the_post();
get_template_part(\'item-video\');
endwhile; ?>
</div>
</div><!-- end .loop-content -->