sandywp / plugins / wp-media-library-categories
Media Library Categories
Adds the ability to use categories in the media library.
Ready in seconds.
v2.0.2 20,000+ installs WP 4.9+

What you get inside
3 screens-
Filter by category in the media library. Use bulk actions to add and remove categories of multiple images at once.
-
Manage categories in the media library
-
Filter by category when inserting media (premium version)
About this plugin
Adds the ability to use categories in the WordPress Media Library. When activated a dropdown of categories will show up in the media library.
You can change / add / remove the category of multiple items at once with bulk actions.
There is even an option to filter on categories when using the gallery shortcode.
Features WordPress Media Library Categories
- add / edit / remove categories from media items
- change the category of multiple items at once with bulk actions
- category options & management in the Media Library
- filter on categories in the media library
- filter on categories in the gallery shortcode
- taxonomy filter
- support for WordPress 4.9 – 7.1
Try Premium version – 100% money back guarantee
WordPress Media Library Categories Premium adds the option to filter on categories when inserting media into a post or page.
Try now – 100% money back guarantee
Questions
- How to use separate categories for the WordPress Media Library (and don’t use the same categories as in posts & pages)?
By default the WordPress Media Library uses the same categories as WordPress does (such as in posts & pages). If you want to use separate categories you can use a custom taxonomy, this can be set under Settings → Media (or click on the settings quicklink on the WordPress plugins overview page).
- How to use category in the [gallery] shortcode?
To only show images from one category in the gallery you have to add the ‘
category‘ attribute to the[gallery]shortcode.
The value passed to the ‘category‘ attribute can be either thecategory slugor theterm_id, for example with the category slug:[gallery category="my-category-slug"]Or with term_id:
[gallery category="14"]If you use an incorrect slug by default WordPress shows the images that are attached to the page / post that is displayed. If you use an incorrect term_id no images are shown.
Aside from this behavior, the
[gallery]shortcode works as it does by default with the built-in shortcode from WordPress (see the WordPress gallery shortcode codex page). If you only want to show attachments uploaded to the page and filtered by category than use the ‘id‘ in combination with the ‘category‘ attribute. For example (the id of the post is 123):[gallery category="my-category-slug" id="123"]Or leave id empty for current page / post:
[gallery category="my-category-slug" id=""]In this example the slug is used, but you could also use the term_id.
- How can I filter on categories when inserting media into a post or page?
This feature is only available in the premium version
- I want to thank you, where can I make a donation?
Maintaining a plugin and keeping it up to date is hard work. Please support me by making a donation. Thank you.
Please donate here
sandywp / also on the shelf
Try another plugin
4.7 · 70K+ installs
Very customizable plugin to list posts by category (or tag, author and more) in a post, page or widget. Uses the [catlist]…
4.8 · 70K+ installs
Enhances the Media Library; powerful gallery and list shortcodes, full taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick…
PublishPress Taxonomies – Tag, Category, and Taxonomy Manager – Autotagger…
4.6 · 40K+ installs
Tags, Categories and WordPress terms are easy with PublishPress Taxonomies. Add a Tag or Category to Pages, manage your…
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.