overwrite wordpress gallery with custom gallery shortcode
At the top of the Gallery Shortcode Callback is a filter hook: post_gallery If any non-empty / non-null output is returned from this filter the shortcode will use that output instead of the default generation. You can copy the source of the Gallery Shortcode Callabck and modify it as you see fit. The below is … Read more