Title: Include image caption
Last modified: September 24, 2020

---

# Include image caption

 *  Resolved [TecBrat](https://wordpress.org/support/users/tecbrat/)
 * (@tecbrat)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/include-image-caption/)
 * I’d like to suggest the addition of image captions. I’m sure you’d do a more 
   elegant job than me, and make it a boolean option, but here’s my code dropped
   into includes/widget.php
 *     ```
       		...} // if show_thumb
   
   
       		//Adding a caption here
       		?><span class="FeaturedCaption"><?php the_post_thumbnail_caption(); ?></span><?php
   
               // show title if wished
       ...
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/include-image-caption/#post-13448268)
 * Well, it is an interesting idea. But I prefer a slim approach, just featuring
   the posts more than the images. What do you think?
 *  Thread Starter [TecBrat](https://wordpress.org/support/users/tecbrat/)
 * (@tecbrat)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/include-image-caption/#post-13448581)
 * I asked because my client wants it.
 * I can edit, and have edited, the code. But any time the plugin updates, I’ll 
   have to re-write my edit. I figured I’d let you know that it’s been requested
   and see if you’d consider adding it as an option, like you do for Post Title.
 * Looking back at my code, I should have put in inside the “if show_thumb” block,
   but that’s a minor issue at this point.
    -  This reply was modified 5 years, 8 months ago by [TecBrat](https://wordpress.org/support/users/tecbrat/).
      Reason: Add comment about improving my code
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/include-image-caption/#post-13500627)
 * I tend to not include that feature into the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Include image caption’ is closed to new replies.

 * ![](https://ps.w.org/recent-posts-widget-with-thumbnails/assets/icon-256x256.
   png?rev=2478511)
 * [Recent Posts Widget With Thumbnails](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/include-image-caption/#post-13500627)
 * Status: resolved