Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Call plugin from template.php
#1
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!
Reply
#2
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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
(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
Reply
#4
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> */
?>
Reply




Users browsing this thread: 1 Guest(s)