Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #6647

    If I have an apostrophe in the metadata of a photo imported from Aperture or Lightroom in either the Title or Description fields, the Flashlight gallery cuts the text off at said apostrophe when display in lightbox mode.

    For example “David’s Store” becomes “David”.

    I’ve seen answers in other themes on this issue that suggest using the HTML entity for apostrophes but I think if this is a theme for photographers then it should handle this rather then asking users to maintain natural language metadata in our photo management app then change all the apostrophes in the image gallery after.

    Here’s an example of the issue:

    In the first photo you can see the pop-up metadata includes the correct text but if you click on the photo the text cuts off at “it’s” in the lightbox.

    Love the theme aside from this weird little bug!

    Many thanks,




    as far as I know it’s a WordPress limitation and not a theme limitation. WordPress doesn’t support ‘ in media data fields but you need to write ‘

    (i.e. some forum posts: (Purchase code hidden if logged out) or (Purchase code hidden if logged out) -or-quotes or (Purchase code hidden if logged out) -in-caption-for-picture/ )

    The reason is quite simple: PHP uses ‘ and ” to mark text strings, etc. and it can’t differentiate between “text” symbols and code/syntax symbols.


    Argh. Okay, thanks for the info. :)


    Glad that I could help you :)


    It works !

    Just insert &#39 where you want an apostrophe.


Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Apostrophes Not Being Escaped In Lightbox Title or Description’ is closed to new replies.