Newbie question about pll_current_language
-
Hi guys, please forgive me for this question that might have been already asked but I have already searched and have not been able to make this work.
The thing is, I want to use a shortcode according to the current locale, pointing to different contact forms.
Tried this:
<?php if ( pll_current_language() == 'es' ) { [shortcode es] } elseif ( pll_current_language() == 'en' ) { [shortcode en] } ?>
Please let me know if this is possible and if I’m doing it right.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Newbie question about pll_current_language’ is closed to new replies.