我需要显示所有页面的特色图片,而不是帖子。我有这个代码:
<?php
if ((is_singular() || is_home()) && current_theme_supports('post-thumbnails')) : echo get_the_post_thumbnail( '12', 'full' ); ?>
<img src="<?php header_image(); ?>" class="header-img" alt="" />
<?php endif;?>
但这仅显示一张特色图片。
太感谢了!