wordpress 添加帖子图片未显示

问题描述

当我插入 wordpress 添加帖子时图像不显示 但它会显示在帖子描述区域

echo '<div id="droppable">';
$z =1;
foreach($list_images as $k=>$i){
    $Meta = get_post_meta($post->ID,$i,true);
    $img = (isset($Meta)) ? '<img src="'.wp_get_attachment_thumb_url($Meta).'" width="100" height="100" alt="" draggable="false">' : '';
    echo '<div class="image-entry" draggable="true">';
    echo '<input type="hidden" name="'.$k.'" id="'.$k.'" class="id_img" data-num="'.$z.'" value="'.$Meta.'">';
    echo '<div class="img-preview" data-num="'.$z.'">'.$img.'</div>';
    echo '<a href="javascript:void(0);" class="get-image button-secondary" data-num="'.$z.'">'._x('Add New','file').'</a><a href="javascript:void(0);" class="del-image button-secondary" data-num="'.$z.'">'.__('Delete').'</a>';
    echo '</div>';
    $z++;
}
echo '</div>';
?>

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)