• Resolved woalmoore

    (@woalmoore)


    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

    (@dglingren)

    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]

    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

    (@woalmoore)

    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

    (@dglingren)

    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

    (@woalmoore)

    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.