How about like this:
<div style="position: relative">
<?php the_post_thumbnail('large');
$imagedesc = get_post(get_post_thumbnail_id())->post_content;
if(!empty($imagedesc)) {
echo '<span style="position:absolute; bottom:9px; right:0; color:#FFF; background:rgba(0,0,0,0.8); padding:4px 6px; font-size:0.7em">';
echo $imagedesc;
echo '</span>';
} ?>
</div>
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Set the background to a default image if there isn’t a specified “featured image”
- How to Make Thumbnail of Post Stay Animated
- not outputting medium size image URL
- add if statement to the featured image
- Remove default Image Sizes
- Generate and upload screenshot as featured image for user-submitted post
- What’s the best way to use the Featured Image for responsive web design?
- How to add a class to the attachment images
- How to draw media details for Isotope gallery using Photoswipe
- How to register images uploaded via FTP in media library?
- WordPress remove EXIF Data from specific Thumb
- Adding Featured Image to Post programatically
- Add custom image sizes to media uploader
- How to upload imagick resource to media in wordpress
- How to use SRCSET with get_the_post_thumbnail()?
- How do I get images (with a thumbnail preview) to show in search results?
- Additional image sizes are not being generated
- Using wp_get_image_editor in a standalone script
- Assign a picture URL to a page via PHP
- Change logo based on incoming domain
- How to scale image with equal width and height without distortion?
- How to Display Image Meta underneath EVERY image in EVERY post
- Convert all images to PNG on file upload
- Echo URL of large version of Featured Image
- How to get specific image in media library with php
- hover image appears below placeholder instead of overlayed
- Recent posts with featured image or fallback image with permalink
- How to control WordPress image metadata (using Imagick)?
- How to use thumbnail size of image if I’m only using src to get image
- Scrape external webpage for first image and add it to new post
- Can’t generate thumbnail images
- Redirect to another page using contact form 7? [closed]
- ‘Post-thumbnails’ feature does not seem to register
- height should be set to auto to avoid pixelation in the post thumbnail function
- Three Questions with Twenty Eleven theme
- Resize image to specific dimension (X to Y ratio)
- Get featured image with custom size outside WordPress
- How to set a featured image (thumbnail) with PHP?
- Image rotation issue (horizontal picture uploading as vertical) — Exif issue?
- Fallback image URL if no featured image exists via a shortcode function
- Generate responsive post thumbnails of same size
- Get the alt text of the image in a array
- Adding a ‘style=’ bit to image_send_to_editor output
- Convert all uploaded PNG files to PNG-8 format
- Retrieve alt text by referencing the img src
- Add Featured Image to Existing Post
- How to use data URL in WordPress?
- Replace background image with post thumbnail in shortcode
- Resize post thumbnail
- How to put 2 php codes in functions.php without site crashing
- How to link all featured images to custom url in single.php for only non-logged-in users?
- Showing wordpress latest post thumbnails in slider with auto increment
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- Retrieving specific images from Media Library
- How do I routinely extract the thumbnail of the most recent post?
- insert thumbnail image from php script
- Can’t put a hyperlink on Featured Post’s Image
- add class to background image
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Save the outputted image into the Media Library, with a different filename and extension
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- Overwriting a Shortcode
- Setting post thumbnail sizes in template file and functions.php
- PHP-Code inside Href-Tag
- How can i give a download link to the thumbnail or featured image
- Understanding responsive imagery
- WooCommerce: write featured image dimensions to custom fields in product’
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- How to call a function only once (global variable scope)
- Multiple is_page() in page.php
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How can update custom meta for all posts
- wrong php date()?
- combine Code 1 with Code 2
- Two Different Links for Same Product – WooCommerce [closed]
- Modify custom field input data before creating a new post
- “Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine
- Query Pages and post excerpts dynamically
- Get my site session in wordpress?
- is_user_logged_in() not working in AJAX validation call
- Register a menu – Error Header
- How to create a field in customize and show that in header.php?
- Set site title & tagline with wp.config or function.php
- Shortcode to embed Edit Account form not working
- Get user custom field value on function.php
- Get the id of all images in a post
- Displaying Event within two given time frames
- How to call custom function outside from the admin page?
- Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?
- Reject all malicious URL requests functions.php
- How to override WooCommerce Order Item Meta with data from Cart?
- Taxonomy Child Term, Counter is staying on 0
- Using get_theme_mod with checkbox to display content
- Break a WordPress function to run in patches and re-continue
- Automatically change insurance quantity based on cart total [closed]
- Add/alter image attribute before render
- hiddenQuestions.find is not a function