WordPress.org

Support

Support » How-To and Troubleshooting » Short Code in the template

Short Code in the template

  • Hi,

    I’m using this old translation plug in to change the language between english and french on the front end of my site. on the page with the store locator, I have some text that comes from a php file within the plugin. I’m trying to use this template tag to translate the text, depending on which language is active, but it doesn’t seem to be working…

    <?php echo do_shortcode('[lang_en]'); ?>
    <p>CONTENT HERE.</p>
    <?php echo do_shortcode('[/lang_en]'); ?>

    Does anyone know why? Or have an alternative language swticher plugin? Preferably one that does not require the two different languages to be on seperate pages.

    Here is the plugin page for my current language switcher: http://www.poplarware.com/downloads/language_switcher

  • The topic ‘Short Code in the template’ is closed to new replies.