I\'m trying to get the captions from images in Wordpress but I can\'t find an easy function to grab this bit of information.
Anyone know a way to get this?
T
I'm using this code, It works fine.
$get_description = get_post(get_post_thumbnail_id())->post_excerpt; if(!empty($get_description)){//If description is not empty show the div echo '' . $get_description . ''; }