Support » Plugins and Hacks » [Resolved] [Plugin: File Gallery] Option to set "display caption" to always on by default

[Resolved] [Plugin: File Gallery] Option to set "display caption" to always on by default

  • i wonder if i’m missing a setting somewhere, but what i’d like achieve is to have an option to set “display caption” to always on by default, just as we can set default settings for alignment and other things which can be overridden on a per case basis in the post/page file gallery block.

    in other words, i’m looking for a way to make file gallery always add single images with a caption as long as this particular attachment has caption text.

    thanks for your help. words fail to describe how i love this plugin :).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aesqe


    @jardokraka: thanks for the compliment 🙂

    I’ve just released File Gallery and the ‘display caption’ option should now be checked by default (and it should’ve been ever since I’ve added it, as WordPress adds captions by default).

    I’ll add it as a config option on the media settings page in the next version.

    thanks alot, v1.6.5.2 resolves this issue.

    actually, not 100% :).

    ‘display caption’ is now checked by default, as per my request, but this results in unwanted behavior (in my view).

    i attach an image, and i do not set any caption in its metadata, the caption field is empty — only the title and alt fields are filled out.

    then when i click ‘insert attachment as single image’, the inserted code is as follows:

    [caption id="attachment_458" align="aligncenter" width="520" caption=""]<img src="http://www.site.com/wp-content/uploads/2010/12/blah.jpg" alt="blah" title="blah" width="520" height="397" class="aligncenter size-medium wp-image-458" />[/caption]

    it inserts an empty caption, while i believe it shouldn’t insert anything caption-related as long as the caption field was left empty in meta settings.

    i’d be interested in hearing your thoughts on the matter :).


    Plugin Author Aesqe


    @jardokraka: eh, yes, that shouldn’t be happening and I’ll correct it in next version 🙂

    The good news is:
    a) WordPress’ editor JavaScript will strip the caption tag if its contents are empty
    b) the caption shorttag function will not display the caption if its contents are empty

    Plugin Author Aesqe


    fixed in v1.6.5.3 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: File Gallery] Option to set "display caption" to always on by default’ is closed to new replies.