您好我如何在此处访问附件数组,例如如何返回永久链接字段:
Array ( [name] => Temp List
[attachments] => Array (
[32107] => Array (
[id] => 32107
[permalink] => /fred
[image] => http://wp-content/uploads/2017/11/f20e4f030a09f2a87740715f15679aa5-3-768x1154.jpg
[thumbnail] => http://wp-content/uploads/2017/11/f20e4f030a09f2a87740715f15679aa5-3-200x300.jpg
[name] => fred
)
)
)
我知道阵列上有很多问题,但我已经尝试了各种方法,似乎无法得到它。
非常感谢
答案 0 :(得分:-1)
试试这个
$array['attachments']['32107']['permalink']