Media Library Categories


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 3.1 – 5.3

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


  • メディアライブラリーのカテゴリ別に絞り込み検索 します。 一括して複数の画像のカテゴリを追加または削除するには、一括操作を使用します。
  • メディアライブラリーのカテゴリーを管理
  • Filter by category when inserting media (premium version)


WordPress による自動インストール:

  1. WordPress 管理画面でプラグイン「新規追加」画面に移動します
  2. 「Media Library Categories」を検索します
  3. 「今すぐインストール」をクリックし、プラグインを有効化します
  4. メディアライブラリーに、カテゴリーのドロップダウンメニューが表示されます

FTP による手動インストール:

  1. ‘/wp-content/plugins/’ ディレクトリに、Media Library Categories のディレクトリをアップロードします
  2. WordPress 管理画面のプラグイン画面からプラグインを有効化します
  3. メディアライブラリーに、カテゴリーのドロップダウンメニューが表示されます

FTP の代わりに WordPress 経由でプラグインをアップロード:

  1. WordPress 管理画面のプラグイン「新規追加」画面 (「アップロード」タブを参照) からダウンロードした ZIP ファイルをアップロードし、有効化します。
  2. WordPress 管理画面のプラグイン画面からプラグインを有効化します
  3. メディアライブラリーに、カテゴリーのドロップダウンメニューが表示されます


WordPress メディアライブラリー専用のカテゴリーを使用する方法 (投稿や固定ページと同じカテゴリーを使用しない)

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 for the WordPress Media Library add this code to the file functions.php located in your theme or child-theme:

* separate media categories from post categories
* use a custom category called 'category_media' for the categories in the media library
add_filter( 'wpmediacategory_taxonomy', function(){ return 'category_media'; } ); //requires PHP 5.3 or newer

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 the category slug or the term_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.


This feature is only available in the premium version

私はあなたに感謝したいです、どこで寄付をすることができますか ?



When using the Media Library Categories with WPML with separate media categories from post categories; then it looses it's wpml compatibility, is there a fix for this? (When it shared the categories with the posts the categories were seperate from wpml languages) Meaning the separate media categories is not seperate from each WPML languages but instead are shared across languages. If you look into this for me I will gradly translate the plugin to danish as it's my native language as I would like to have this plugin for my multilanguage site.
Thank you! This plugin does for free something simple yet included in PRO version of other similar plugins - bulk category assign 👍🏻 Unfortunately, images do not show up in the media library when filtered for the corresponding category
No idea which problem the one-star rating guys have. I installed it, created first categories and was able to bulk assign files to the category. Also filtering in the media library per category works, and that's exactly what i need to do.
Great plugin, thanks so much! Don't know why other people are complaining of lack of features in free version.


Media Library Categories はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。


“Media Library Categories” は8ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Media Library Categories” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。



  • Indent child categories in checklist media popup


  • Support WordPress 5.0
  • Support multiple slugs and id’s in gallery shortcode
  • Support WordPress Coding Standards 1.1.0
  • Add support for Dark Mode in WordPress


  • Support for SCRIPT_DEBUG
  • Only load CSS when needed


  • Notice for first time users how to separate media categories
  • Rewrite entire plugin to improve quality and make it ready for future development
  • Move language files to GlotPress

See complete changelog for all versions.