• Hello and Happy Thanksgiving!

    I’ll keep this short.

    I was just curious how I would go about directly embedding the GTranslate plugin ( located @ http://wordpress.org/extend/plugins/gtranslate/ ) into my WordPress template’s .php files.

    Like some Plugins let you do it with something similar to
    < ?php if(function_exists(‘example’)) echo example() ;?>

    I’d prefer to not have it as a widget, and I’ve googled for about 45 minutes now for an answer, and I’ve had no luck, sadly.

    Any help would be much appreciated, seems like it would be a somewhat simple thing to do.

    Thanks either way!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lotsen

    (@lotsen)

    Nobody? :o(

    Thread Starter lotsen

    (@lotsen)

    Pretty surprised there is no answer to this anywhere on the internet.

    Oh well, thanks anyways.

    I’m totally with you! GTranslate is an amazing plugin! I want to embed it into the nav menu at SKUFF Protective Coatings. There isn’t an answer?

    I was thinking you could use the Widgets on Pages plugin and then call the shortcode using php — i.e
    <?php echo do_shortcode('[widgets_on_pages id=x]'); ?>
    The only problem is: then you have to rely on another plugin for it to work…I’d rather have a good php function to put in the template, if you get my drift. 🙂

    I’ll let you know how it goes!

    I’ve been formatting. It works, but it’s easier to just add:

    <?php echo do_shortcode(‘[GTranslate]’); ?>

    wherever you want to in your template.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin: GTranslate: Direct embed into template?’ is closed to new replies.