Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php “发布”缩略图wordpress不显示图片_Php_Wordpress - Fatal编程技术网

Php “发布”缩略图wordpress不显示图片

Php “发布”缩略图wordpress不显示图片,php,wordpress,Php,Wordpress,嗨,请帮我找出哪里出了问题。即使在functions.php中插入了post_缩略图,仍尝试在帖子上显示图像 <div class="row"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="col-sm-4"> <div class="list-image border-one">

嗨,请帮我找出哪里出了问题。即使在functions.php中插入了post_缩略图,仍尝试在帖子上显示图像

<div class="row">
    <?php
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    ?>

    <div class="col-sm-4">
        <div class="list-image border-one">
            <?php the_post_thumbnail( ''); ?>
        </div>
        <div class="list-info">
            <h2>Please Help Refugees</h2>
            <p><span>85%</span> Donated / <span>$7,291</span> To Go</p>
            <p>On the other hand, we denounce with righteous indignation and dislike.</p>
            <a href="#" class="btn btn-primary">Donate Now</a>
        </div>
    </div>
    <?php endwhile; endif; ?>
</div>

请帮助难民
85%捐款/7291美元

另一方面,我们义愤填膺地谴责


我不知道为什么要为
$size
参数传入一个空字符串。请改用以下方法:

<?php the_post_thumbnail(); ?>

使用
而不是


如果它仍然不显示图片。重新上传图片。

出了什么问题?您是否收到错误消息?生成的HTML是什么样子的?