Linus Lundahl
Member
Plugin Author
Posted 1 year ago #
Hello Good Old Gallery users,
I've been working hard lately on getting out a new and much improved version of the plugin. It's getting there, but I'm not quite ready to release it on WP.org just yet.
It should straighten out a lot of quirks, and adds some nice new functionality.
You can get it from https://github.com/linuslundahl/good-old-gallery
Please try it out if you feel like and post any bugs or requests here or on GitHub.
http://wordpress.org/extend/plugins/good-old-gallery/
Hi Linus —
Thanks for your hard work. I like the plugin, and I wonder if it's possible for me to hack function.php to run Good Old Gallery by using WP's gallery short code?
I mean, can you show me how can one achieve that?
Thank you.
Linus Lundahl
Member
Plugin Author
Posted 1 year ago #
well, you should probably be able to something like this:
add_shortcode('gallery', 'THEME_gallery_shortcode');
function THEME_gallery_shortcode($attr) {
// Get attributes from $attr and add them to the shortcode
return do_shortcode('[good-old-gallery]');
}