How to show WordPress featured image caption without a plugin

This WordPress snippet will allow you to show the image caption for the featured image in your WordPress posts without using a plugin.

Add this code your theme files (ie. single.php) where you are displaying the image.
ur image.

*you can replace post_excerpt with post_content to get the image description etc.


Leave a Reply

Your email address will not be published. Required fields are marked *