我已经安装了最新的 Dynamic Featured Image 3.1.2,当我尝试在页面上打印出精选图像数组时,我只能得到 Featured Image 2 及以后的版本。
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if( class_exists('Dynamic_Featured_Image') ) {
global $dynamic_featured_image;
$featured_images = $dynamic_featured_image->get_featured_images( );
print_r( $featured_images );
//You can now loop through the image to display them as required
} ?>
... << rest of Post Loop >>
尽管我添加了不止一张特色图片,但它仅在特色图片 2 及阵列中显示。
我错过了我需要做的其他事情吗?