Problem with do_shortcode in template file and WPML multilanguage plugin
-
Hi!
I have recently installed WPML plugin for multilanguage, and I started having issues with Nextgen gallery.
I’m using do_shortcode in a template file to display a gallery. Here’s the code I’m using:
<?php echo do_shortcode('[nggallery id=1 template=xxxxx]'); ?>
The gallery displays correctly for the default language. But for the other language, it says: “Gallery not found. Please check your settings.”The gallery is obviously there, because it displays correctly in the default language. I have also tested do_shortcode with other shortcodes, and it works fine. So I guess this issue is related to Nextgen.
Also, if I use the shortcode directly on the post, it works fine for both languages.
Do you have any clue of how to fix this?
Thanks!
- The topic ‘Problem with do_shortcode in template file and WPML multilanguage plugin’ is closed to new replies.