Unable to use plugin in a php template page. May have to dump this plugin.
-
The suggested way to display a FooGallery album or gallery is using a shortcode. Plugin shortcodes don’t work universally, however. Put one in the content section on a static page, and it works fine. Try to print out that same shortcode in a dynamically generated page and it fails. Instead of just working the same way wherever it’s put, the shortcode somehow uses the context of page it’s on to change how it displays. So, when you try to display it using echo do_shortcode() in php, it prints the wrong URL and doesn’t work properly when clicked. I’ve been searching for help on this, but there’s nothing. There’s gotta be some way to set the page context dynamically so that the shortcode works properly, but when you go to the FooGallery’s own page where it says “Developer 101” or where it talks about about how easy it is to customize and extend, there’s no link to development resources. It’s just a marketing page… Is this thing flexible or not? Howso? I can’t use this plugin at all if I can’t get it to print on a template page properly.
- The topic ‘Unable to use plugin in a php template page. May have to dump this plugin.’ is closed to new replies.