If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
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!
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: http://wordpress.org/support/topic/ (Purchase code hidden if logged out) or http://wordpress.org/support/topic/ (Purchase code hidden if logged out) -or-quotes or http://mcclellandmiscellanea.wordpress.com/2011/04/16/ (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.
The topic ‘Apostrophes Not Being Escaped In Lightbox Title or Description’ is closed to new replies.