Thanks! It’s working with this:
if (get_locale()=='pl_PL') {
echo do_shortcode( masterslider(1) );
}
🙂
Hi,
I have similar problem. I’m trying to change slider shortcode depending on language in PHP file with:
if (get_locale()=='pl_PL') {
echo "masterslider(1);";
}
...
But it’s not working properly. Shortcode is apearring on website instead of being “transformed” into slideshow.
Any tip or solution for this?
Regards,
Tom
-
This reply was modified 9 years, 6 months ago by bobrowiczt.