How to fetch image url and description?
-
Hello,
I’m trying to work this into a template, and while the below does match, but I’m lost as to just what the object returned in $media_items is and how I access the image url and description:
$media_items = get_attachments_by_media_tags('media_tags=home-slider'); if ($media_items) { var_dump($media_items); } }
The var dump is showing me that I apparently have a bunch of arrarys inside of arrays, and I’m assuming there’s a proper way to get at that.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to fetch image url and description?’ is closed to new replies.