从标题图像中获取所有thumbnail_url

时间:2014-02-05 09:44:41

标签: wordpress header

我使用“get_uploaded_header_images()”函数获取了数组。现在我想在另一个数组中打印所有的thumbnail_url图像。

我得到的数组是

          Array
(
    [cropped-abstract-white-awesome-album-black-colorful-cool-music-nice-1064669.jpg] => Array
        (
            [attachment_id] => 23
            [url] => http://localhost/TantraProjects/gradualis/wp-content/uploads/2014/02/cropped-abstract-white-awesome-album-black-colorful-cool-music-nice-1064669.jpg
            [thumbnail_url] => http://localhost/TantraProjects/gradualis/wp-content/uploads/2014/02/cropped-abstract-white-awesome-album-black-colorful-cool-music-nice-1064669.jpg
            [width] => 1300
            [height] => 400
        )

    [cropped-color.jpg] => Array
        (
            [attachment_id] => 24
            [url] => http://localhost/TantraProjects/gradualis/wp-content/uploads/2014/02/cropped-color.jpg
            [thumbnail_url] => http://localhost/TantraProjects/gradualis/wp-content/uploads/2014/02/cropped-color.jpg
            [width] => 1300
            [height] => 400
        )

)

现在我想要所有[thumbnail_url]的数组。

0 个答案:

没有答案