如何从wordpress datababse获取s3 cloudfront图像网址

时间:2018-01-30 03:53:44

标签: php wordpress amazon-s3

上传到s3亚马逊的WordPress图片包含随机数示例图片

 `https://randserver.cloudfront.net/articles/wp-content/uploads/2018/01/1517137892/image.jpg`

如何从DB中获取此号码?它存储在数据库中吗?如果我在WordPress之外收到一个WordPress帖子,我怎么能得到这个图像网址。 post表中存储的路径是正常路径,如

https://www.myserver.com/wp-content/uploads/2018/01/crazy-nights-dubai-lucky-voice-candypants.jpg

1 个答案:

答案 0 :(得分:0)

This number is stored in wp_postmeta table. You can find the record with "amazonS3_info" value of "meta_key" attribute.