Title: Using Image Title as the Caption
Last modified: April 24, 2019

---

# Using Image Title as the Caption

 *  Resolved [woalmoore](https://wordpress.org/support/users/woalmoore/)
 * (@woalmoore)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/)
 * I’m checking to see if this plugin will do what I need done. Over the summers,
   I take pictures for my kids’ swim team. Before uploading them, I rename them 
   sequentially as “[TEAM NAME] [YEAR] ####”. I’d like to use this filename as the
   caption under the photos. Last year, since the default Gallery wouldn’t do the
   trick, I went into MyPhpConfig and copied the “Title” field to the “Post-Content”
   field for the necessary items every time I uploaded them (I had around 6000 for
   the season). Is there a way to do this in your plugin without the extra step 
   of changing the database by hand?
 * Thanks.
    Allen.

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/#post-11464440)
 * Thanks for your question and the details of your application. I am confident 
   that MLA can give you the solution to the goal you outlined.
 * You can easily change the caption displayed in a gallery with the `[mla_gallery]`
   shortcode and its `mla_caption` parameter. You could also define a mapping rule
   to populate the Caption (post_excerpt) value for the items as they are uploaded.
 * Here are a couple of earlier support topics along similar lines to give you a
   better idea of what’s possible:
 * [Change alt attribute for [mla_gallery]](https://wordpress.org/support/topic/change-alt-attribute-for-mla_gallery/)
 * [Media upload date](https://wordpress.org/support/topic/media-upload-date/)
 * I hope that gets you started on a solution that meets your needs. I am marking
   this topic resolved, but please update it if you have problems or further questions
   regarding the above suggestions and the earlier topics. Thanks for your interest
   in the plugin.
 *  Thread Starter [woalmoore](https://wordpress.org/support/users/woalmoore/)
 * (@woalmoore)
 * [7 years ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/#post-11471049)
 * Thanks for the quick response. I think the first link provides exactly what I
   need. (not sure if it would change being able to use the mapping rule…I upload
   via ftp and then use a plugin to import the image data into the media library).
 * This might be better off as a new topic but it’s related so I’ll include it here.
   While I didn’t do this last year, in the past, I’ve also included paypal buttons
   and a dropdown menu with each picture. What I did in the past, instead of using
   the gallery shortcode, was to create a webpage with a table…two rows per 4 or
   5 images…one row had the image and the other row had a drop down to choose a 
   size and a paypal add-to-cart button for each image. Is there anyway to add something
   like that (not in a table) using the MLA_Gallery? To make it more general, can
   you put additional shortcodes and/or html/php code inside the caption element
   that will produce different specifics for each picture? I’ll try to find one 
   of the pages I did so you can see what I did in the past (I think I’ve taken 
   it down since it was about 2 years ago).
 * Thanks again.
    Allen.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/#post-11472056)
 * Thanks for your update with the good news.
 * You wrote “**_I upload via ftp and then use a plugin to import the image data
   into the media library_**“. The mapping rules defined on the Settings/Media Library
   Assistant IPTC/EXIF tab will probably work if the plugin follows WordPress conventions
   for inserting new Media Library items, as long as the “Enable IPTC/EXIF Mapping
   when adding new media” and “Enable IPTC/EXIF Mapping when updating media metadata”
   boxes are checked. It’s worth a try, and I can investigate further if you tell
   me the plugin you’re using.
 * Regarding your “**_paypal buttons and a dropdown menu with each picture_**” idea,
   you can probably do what you want by defining a custom markup template that generates
   an HTML form and the controls for each item. More information and examples can
   be found in the “Style and Markup Templates” and “A Table-based Style and Markup
   Template Example” sections of the Settings/Media Library Assistant Documentation
   tab. There are also several earlier support topics along similar lines; search
   this forum for “mla_markup” to find them.
 * You can’t put additional shortcodes and/or PHP code in the template, but MLA’s
   field-level substitution parameters and Content Templates can satisfy many needs.
   You could also define your own WordPress page template and add any PHP code or
   logic you need, including code that hooks MLA’s actions and filters defined in
   the Documentation “MLA Gallery Filters and Actions (Hooks)” section.
 * I hope the above suggestions get you started. If you need more specific guidance,
   starting a new topic would be the best next step.
 *  Thread Starter [woalmoore](https://wordpress.org/support/users/woalmoore/)
 * (@woalmoore)
 * [7 years ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/#post-11472225)
 * Thanks again for the quick reply. I was able to do it using the Markup and Styles.
   Had to use the paypal text from the site rather than the shortcode…but got it
   to work like I wanted. Thanks again!

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

The topic ‘Using Image Title as the Caption’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [woalmoore](https://wordpress.org/support/users/woalmoore/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/using-image-title-as-the-caption/#post-11472225)
 * Status: resolved