标签: wordpress dynamic-featured-image
我的WordPress中有很多帖子,但我需要通过SQL向所有图片动态添加功能图片
我尝试在SQL中搜索,但是运气不好,特征图像行在哪里
答案 0 :(得分:0)
我们可以通过以下方式动态获取功能图片网址:
$img= wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ),'full'); <?php echo $img[0]; ?>
这里是完整的图像大小,您可以更改为WP提供的任何sez