I'd like to use the plugin in K2 item template php file but it's not working. I place the {gallery}folder{/gallery} tags and it shows the tags instead the gallery in the frontend.
If I'm right the problem is occuring because of the following row in the gallery php file:
// Find all instances of the plugin and put them in $matches
preg_match_all($regex, $row->text, $matches);
The code is searching the tags only in saved text in database.
I'm new to PHP and don"t know how to check the whole page and source code for the tag string.
Any solution to solve this?
Thanks for your help.