Hi, I’d like to report a weird bug that I can’t quite figure out — and I’m hoping someone can point me to a fix. I’m building a multilingual site using bricks along with these plugins:
Nextgen Gallery Pro
WPML
Here’s the thing:
When I place a shortcode element that loads a Nextgen gallery (for example: [ngg src="galleries" ids="1" display="basic_thumbnail" thumbnail_crop="0"])
onto a regular bricks PAGE:
a) Main language → Gallery shows up just fine
b) Translated version → Gallery also shows up just fine
But…
When I put the same shortcode element into a bricks TEMPLATE:
a) Main language → Gallery renders normally
b) Translated version → Nothing. No gallery at all.
All pages and templates are fully translated in WPML, and the shortcode is exactly the same in every language.
So… am I missing something obvious? What am I doing wrong?
Kindly send the website admin credentials and that page URL to help@bricksbuilder.io and include this forum thread URL as a reference. (Best if it’s a staging site so we can debug directly)
thank you for your reply. Meanwhile I spent some more time with investigation and found a workaround for this issue.
This issue is related to dynamic data from a product custom field (attribute) that I placed inside a bricks-shortcode-element, to render a special gallery per product category. The short code was rendered only in the main language, not in the translation, although identical shortcode was inserted in any language (I checked that with an extra text field).
Now I changed the template and added the gallery-shortcodes directly multiple times, using bricks-conditions to select the adequate gallery. It works as expected in any language. I’m sorry but the affected template doesn’t exist anymore.