WordPress.org

Forums

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

  1. Mike Matenkosky
    Member
    Posted 2 years 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?

    http://wordpress.org/extend/plugins/media-library-assistant/

  2. David Lingren
    Member
    Plugin Author

    Posted 2 years 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
    Member
    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
    Member
    Plugin Author

    Posted 1 year ago #

    Francesco,

    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

  • Media Library Assistant
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.