Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 WordPress 中有很多帖子,但我需要通过 SQL 为所有帖子动态添加特征图像
我尝试在 SQL 中搜索,但没有运气特征图像行在哪里
我们可以通过以下方式动态获取特征图像 url:
$img= wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ),'full'); <?php echo $img[0]; ?>
这里 full 是您可以更改为 WP 提供的任何 sez 的图像大小