Ready to get started?Download WordPress


Media Library Assistant
[resolved] Using Title instead of Caption (4 posts)

  1. Mike Matenkosky
    Posted 1 year ago #

    My website (http://www.imagesinthebackcountry.com) is using a neat plugin called "Cleaner Gallery". One of the features that I like is "Image Caption Settings". I didn't use captions when I upload my images....never did. So now I have hundreds of images without captions. The plugin has a setting to display the image title as the image caption if there is no caption.

    Using my test website (http://sandbox.imagesinthebackcountry.com) I noticed the plugin doesn't work. It didn't surprise me because of the two different gallery shortags.

    Is there a setting to duplicate that?


  2. David Lingren
    Plugin Author

    Posted 1 year ago #

    Yes, there is a way to change the text displayed as the "image caption".

    In the Settings/Media Library Assistant screen's Documentation tab you will find the "Gallery Display Content" parameters. The one you want is mla_caption. There's an example there (for rollover_text) that shows how you can combine literal text with multiple substitution parameters if you like. The section on "Attachment-specific substitution parameters" lists all the choices.

    For your specific need, you can add mla_caption="{+title+}" to your [mla_gallery] shortcode. That replaces the default caption with the image title.

    That should give you what you need.

  3. Francesco
    Posted 1 year ago #

    very well everything works fine, I just modified this line:

    $item_values['caption'] = $item_values['description'] ." - ". $item_values['date'];

    thanks for your kind assistance.

  4. David Lingren
    Plugin Author

    Posted 1 year ago #


    I think your comment is actually a response to this other support topic:

    format date

    I have posted a copy of your remarks to that topic. Thanks for the update and for the good news.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.