GetSimple Support Forum

Full Version: Call plugin from template.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to embed a plugin directly on template.php, what is the right way to call, let's say, this function?

(% gallery name=my-slideshow %)

Thanks a lot!
Thats not a function it is a shortcode.
The gallery plugin you are using most surely provides a function for you to use. You need to ask in proper thread for that plugin.
(2014-07-15, 01:03:11)shawn_a Wrote: [ -> ]Thats not a function it is a shortcode.
The gallery plugin you are using most surely provides a function for you to use. You need to ask in proper thread for that plugin.

I thought there could be some kind of universal function to call plugins from templates Undecided

Thanks, I'll see what I can come up with, the plugin I'm using it I18N Gallery by the way Big Grin
In case anyone need it in the future, it's as shawh said, seems to be a plugin-related function. Here's the 118N Gallery code, for example:

PHP Code:
<?php 
     
/* Add the plugin javascript */
     
get_i18n_gallery_header('my-slideshow'); 

     
/* Add the HTML code for the plugin */
     
get_i18n_gallery('my-slideshow'); 

     
/* Both can be inserted in <body> */
?>