How to Create a Dynamic FooGalleryEnhanced Media Library
To make FooGalleries dynamic create an empty FooGallery, put its shortcode into a post or a page, and then just add an attribute like this media_category="one"
.
Know more about gallery attributes
Watch animated GIF