很高兴看到针对WP的StackExchange!好的,我正在从piklist自定义帖子类型中提取图像和日期,我在本地也得到了这项工作,但当我将其移动到WPEngine时,我会得到一个白色页面,直到我取出代码。日期代码不会抛出空白页,但不会提取输入的日期。有人能告诉我是什么导致了这种情况吗?提前感谢!
CODE
single.php
<?php while ( have_posts() ) : the_post(); ?>
<?php
$image_ids = get_post_meta(get_the_ID(), \'my_media\', false);
foreach ($image_ids as $image)
{
echo \'<img src=" \' . wp_get_attachment_image_src($image, \'large\')[0] . \' "/>\';
}
?>
<?php echo get_post_meta(get_the_ID(), \'my_date\', true); ?>
<?php get_template_part( \'content\', themeblvd_get_part( \'single\' ) ); ?>
<?php themeblvd_single_footer(); ?>
<?php if ( themeblvd_supports( \'comments\', \'posts\' ) ) : ?>
<?php comments_template( \'\', true ); ?>
<?php endif; ?>
<?php endwhile; ?>