Get featured image size title and caption?
-
I want to add my featured image to a slider (specifically RoyalSlider, but not using the WordPress Plugin version).
I need to echo out the following:
1. Featured image url
2. The Width <!– preferrably the full uploaded width
3. The height <!– preferrably the full uploaded height
4. The title
5. The captionThe closest I have found is get_post_thumbnail(), but that doesn’t spit out the title or caption, and it spits it out in tags.
Is there another function I should use to do this?
Maybe something that spits out all of the featured image details as an array?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Get featured image size title and caption?’ is closed to new replies.