我必须解析wordpress post_meta 表,特别是“_wp_attachment_metadata”字段
例如:
其值为帖子 id = 99
> a:6:{s:5:"width";s:3:"238";s:6:"height";s:3:"179";s:14:"hwstring_small";s:23:"height='96'
> width='128'";s:4:"file";s:21:"2010/11/matt-lane.jpg";s:5:"sizes";a:1:{s:9:"thumbnail";a:3:{s:4:"file";s:21:"matt-lane-150x150.jpg";s:5:"width";s:3:"150";s:6:"height";s:3:"150";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}
我不明白它是如何编译的或者如何在wordpress之外解析它。我必须从 wordpress 加载最新文章以及 magento 平台上帖子的所有数据集。
请帮我解析这些数据以获取图像源。
提前致谢
最佳答案
关于json - 如何解析wordpress post_meta表值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5125250/