I’ve noticed some issues when trying to insert photos and photo galleries into pages and posts. I am now using the latest version (2.9.5), but this issue has existed for me since my first download/install last week.
For single photos: If I insert an existing photo with multilingual attributes (e.g., title, caption), it disappears after insertion if I update the page/post. WP must see the language tags as bad code or something. All that remains after update is some of the photo’s textual info. I’ve tried with both the square-bracket and angular-bracket versions of the language tags.
I have found a way around this issue, though. Insert the photo, but do NOT hit the page/post’s Update button. First, make sure you’re in the Visual tab of the editor and the Language tab of choice. Click on the photo and select the edit (pencil) icon. Edit the photo’s attributes by removing any language tags and just leaving the attributes in the one chosen language. When finished, click the Update button of the photo editor, and then click the Update button for the page/post. Edit the photo accordingly for each language tab and you will have an appropriate language version of the photo for each version of your page/post. When done updating all pages, check the Text tab in each language because WP sometimes adds some extraneous p tags during the update process.
For photo galleries: If I insert a photo gallery into a page/post, the same version of the gallery is inserted into all language versions. Because of the way galleries work (they just retrieve photo IDs), I don’t see how to include separate versions of the same gallery in different languages. What’s more, the language tags are not recognized properly. On the front end, all language versions of titles, captions, etc. appear side by side, and sometimes the language tags appear as well.
I have not found a way around this one, except maybe to upload a separate version of each photo for every enabled language. The only reasonable option I can see at this point is to just have one language for all photo galleries.
Interestingly, if you have the JetPack plugin and use its photo gallery widget to insert a gallery somewhere (e.g., a sidebar), the language tags do work properly. It seems to be the WP galleries for pages and posts that have a problem with the tags.
I do have a few pages and posts where I need to include photo galleries, so I hope someone can figure this one out. 🙂
- The topic ‘Odd Behavior with Photos and Photo Galleries’ is closed to new replies.