Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Plugin Author Linus Lundahl

    (@linuslundahl)

    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]');
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Good Old Gallery] Problems? Try the version on GitHub!’ is closed to new replies.