This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Tags for Media Library


TML – Tags for Media Library may be useful to anyone trying to use taxonomy tags on WordPress Media Library items. TML supports dynamically generating galleries using a criteria based on taxonomy tags, multiple tag taxonomies for media items, bulk assignment/removal of taxonomy tags to/from media items, filtering the Media Library by taxonomy tags, sorting the media items based on a priority tag, a search widget for media items using a criteria based on taxonomy tags and an alternate high density view of the Media Library. The website for this plugin is here. This version requires WordPress 4.6 and PHP 5.4.

A Multi-View Gallery Viewer

TML also includes a gallery viewer. TML’s gallery viewer is a plug compatible replacement for the standard WordPress gallery viewer for the WordPress [gallery] shortcode. It can be used independently of the other features of TML and supports five different views of a gallery.

Converting NextGEN Gallery 1.9 to WordPress Media Library

For NextGEN Gallery 1.9 users: This plugin first converts NextGEN Gallery’s image database to a WordPress Media Library image database. After the conversion NextGEN Gallery images and galleries have become WordPress Media Library images and galleries. A WordPress taxonomy ‘ngg_tag’ is created and the NextGEN Gallery image tags are saved in this taxonomy. This plugin implements the NextGEN Gallery shortcodes [nggtags], [nggallery], [slideshow], [album] and [singlepic] by dynamically translating them into an equivalent standard WordPress [gallery] shortcode so post content with these shortcodes will still work without editing the post content. NextGEN Gallery’s sortorder is implemented using a tag taxonomy to hold priorities. This plugin works with NextGEN Gallery 1.9.13.


  • TML Large Image View
  • Miro’s Justified View
  • TML Slide Show View
  • TML Titles View
  • Media Library with NGG Tags
  • Edit Media with NGG Tags
  • Search Media using NGG Tags
  • The Conversion Log
  • The Enhanced WordPress Media Library Page
  • The Bulk Tag Taxonomy Editor
  • Search Widget Administrator’s Interface
  • Search Widget User’s Interface
  • The Bulk Priority Editor
  • High Density Media Library View


  1. Upload ‘nggtags-for-wp-media-library to the ‘/wp-content/plugins’ directory.
  2. For NextGEN Gallery 1.9 users: Backup your MySQL WordPress tables.
  3. For NextGEN Gallery 1.9 users: Deactivate NextGEN Gallery.
  4. Activate this plugin through the ‘Plugins’ menu in WordPress.
  5. For NextGEN Gallery 1.9 users: Run the conversion utility using the Dashboard menu item ‘nggtags for Media Library’.


Installation Instructions
  1. Upload ‘nggtags-for-wp-media-library to the ‘/wp-content/plugins’ directory.
  2. For NextGEN Gallery 1.9 users: Backup your MySQL WordPress tables.
  3. For NextGEN Gallery 1.9 users: Deactivate NextGEN Gallery.
  4. Activate this plugin through the ‘Plugins’ menu in WordPress.
  5. For NextGEN Gallery 1.9 users: Run the conversion utility using the Dashboard menu item ‘nggtags for Media Library’.
What if you do not have NextGEN Gallery installed?

No conversion is necessary and the plugin can still be used as implementation of the shortcode ‘nggtags’ which allows you to have dynamically generated galleries based on tags.


Read all 1 review

Contributors & Developers

“Tags for Media Library” is open source software. The following people have contributed to this plugin.



  • fix syntax error in the underscore.js template for the meta overlay
  • fix HTML errors reported by

  • fix scrollbar bug in titles view of Microsoft Edge browser
  • fix transition bug when entering/leaving info icon
  • clicking on overlay background closes overlay

  • added meta info overlay to miro view
  • redesigned layout of titles view and large view in portrait mode
  • fix layout problems with mobile phones

  • workaround for bug in Google Chrome where scrollbar shows in overlay
  • fix rotation bug for flip transitions on reload of a gallery
  • enhanced overlay for fullsize large view

  • enhanced overlay view for fullsize titles view
  • fix blank screen bug
  • fix access bug for Tags for Media Library page on GoDaddy hosted sites
  • fix truncated HTTP GET url bug

  • meta overlay now captures mouse wheel events
  • load user meta template from theme directory

  • rewrote the meta overlay code
  • replaced my proprietary templates for the meta overlay with underscore.js templates
  • apply the ‘the_content’ filters to the image description in the meta overlay
  • include taxonomy tags in the meta overlay
  • add instructions for the user to modify the meta overlay template, ‘nggtags-meta-overlay-template.php’

  • fix bottom alignment bug for full browser viewport titles and slide views

  • added flip card transition for slide show

  • fix incorrectly hard coded time interval for slide show in large view – use time interval from settings
  • (partial) work arounds for quirks in Microsoft Edge – does not preload image, does not resize browser window

  • settings field for Miro’s gallery row height
  • toggle for showing captions on Miro’s gallery
  • full size popup button for Miro’s gallery images
  • preload next image for large view slide show to reduce stuttering
  • some bad code replaced

  • fix bug where meta overlay is sometimes not displayed after a search is done.

  • integration of the search widget directly into the gallery viewer
  • search widget results are returned using AJAX and used to refresh the existing gallery view instead of loading a new page

  • added option to preserve aspect ratio for gallery thumbnails
  • added option to sort images by priority, date or title in admin media library view – see Screen Options
  • added lock to title items in admin media library view
  • fix bug in admin media library view where layout is confused after a new image is inserted
  • show no image instead of stale image when remote server does not respond quickly in large view

  • optimize the info overlay for the full browser viewport view
  • bug fixes and css tweaks


  • now supports a full browser viewport view of all views: standard, miro’s, titles, large and slideshow
  • the large view now supports an embedded slideshow
  • titles and large view modernize to use the CCS3 flexbox which allows a prettier layout
  • fixed a nasty bug which caused the large image to not load correctly when the server took a long time to respond
  • many CSS tweaks to fix alignment problems with some themes that used box-sizing = content-box



  • added sorting by caption
  • obsolete code rewritten to use new HTML features
  • bug fixes

  • fix ‘Loading…’ bug

  • cosmetic and usability enhancements

  • more bug fixes and css tweaks
  • prettify the gallery output
  • add the missing TML views options to the gallery shortcode

  • compatibility with 4.6
  • bug fixes
  • css tweaks for fit and finish

  • fixed broken individual image update

  • fixed broken bulk priority editor
  • added mobile support for ‘titles’ and ‘large image’ gallery views
  • re-styled ‘titles’ and ‘large image’ gallery views

  • fixed broken admin gallery view again

  • fixed broken admin gallery view


  • added fade in, explode, rotate and reveal transitions to slideshow


  • added full browser window mode for slideshow
  • added image details popup to slideshow view
  • added preserve aspect ratio option
  • added shortcode option tml_views to configure gallery mode selection
  • conversion from NextGEN Gallery now stores NextGEN galleries and albums in its own post type – “tml_galleries_albums”


  • implements a slideshow view
  • so now also converts the NextGEN Gallery slideshow shortcode
  • fix some bugs


  • fix captions for [nggtags album] shortcode
  • fix alternate gallery view to work with themes using non default css box-sizing
  • fix various other bugs
  • conversion from NextGEN Gallery now also does albums
  • conversion from NextGEN Gallery now also does the exclude flag
  • use NextGEN Gallery shortcode parameters as HTML class attributes to the converted WordPress gallery
  • bulk operations now support attach to post
  • admin media view now supports filtering by gallery (i.e. uploaded to)
  • another alternate gallery view
  • edit/view/delete links now accessible in row view

  • show meta data for images in overlay

  • enhanced to work better with WordPress 4.0


  • added optional high density view to WordPress standard gallery


  • added optional high density media list view

  • add optional checkboxes overlay for multiple select
  • added help for Media Library for NGG Tags page
  • reset button for search widget


  • sort images in Media Library for nggtags by priority
  • change taxonomy select boxes in Media Library for nggtags to multiple selection
  • show existing priorities in Bulk Priority Editor
  • make images in Bulk Priority Editor removable


  • added bulk priority (sort order) editor
  • fix problem with backslashes () in file paths on Windows servers causing wp_generate_attachment_metadata() to fail in conversion process


  • added search widget for Media Library


  • modified WordPress media library page to filter by tags and bulk add/remove tags


  • support for multiple taxonomies and boolean expressions


  • change conversion logic to prevent timeout on larger databases

  • fix sort order bug on Media Library screen


  • Added support for NextGEN Gallery’s sort order and shortcodes nggallery and singlepic


  • Modified Media Library’s ‘Search Media’ to search by NGG Tags or gallery


  • Initial release.