WP Media Categories

描述

Add categories to media & attachments.

Main Features

  • Control media categories the same way as post categories.
  • Filter the Media Library by category, in both the list and grid views.

Also checkout

屏幕截图

安装

  • Download and install using the built in WordPress plugin installer.
  • Activate in the “Plugins” area of your admin by clicking the “Activate” link.
  • No further setup or configuration is necessary.

常见问题

Where can I get support?

The WordPress support forums: https://wordpress.org/support/plugin/wp-media-categories/

Where can I find documentation?

http://github.com/stuttter/wp-media-categories/

评价

2020 年 2 月 13 日
I can filter in list-/grid-view in the normal media-view. But can't filter when selecting an image in a page or product.

meh

2019 年 1 月 6 日
As a proof of concept it does work, but user has type categories manually upon file upload and there is no category filtering in media insertion dialog, which kind'a would be the point of having categories.
2018 年 9 月 16 日
Hey John, So many thanks for your work on the free plugins ! There is one thing on that one that would be great in furture updates : Having a dropdown with the existing categories when you upload a media file. For now, there is only a blank category field where you need to type in the slug of the category you want to add to the media (ie you need to know the slug). Cheers !
2017 年 1 月 16 日
It would be better if you add possibility to show translation of your plugin. May be something like this load_plugin_textdomain('wp-media-categories', false, basename(dirname(__FILE__)) . '/lang/');
阅读所有6条评价

贡献者及开发者

「WP Media Categories」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WP Media Categories」插件已被翻译至 8 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「WP Media Categories」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

[2.2.1] – 2026-09-16

  • Require WordPress 6.4 or newer

[2.2.0] – 2026-09-14

  • Require the Media Library bulk-action nonce before changing attachment categories (CVE-2025-60134)
  • Require PHP 7.4 or newer
  • Correct attachment-query pagination metadata
  • Preserve media-library loading behavior introduced in WordPress 5.8
  • Accept taxonomy names and taxonomy objects in the count callback
  • Use prepared count queries and current taxonomy-query signatures
  • Preserve percent-encoded and non-Latin category slugs in Media Library filters and redirects
  • Keep bulk category actions available through the current WordPress footer-script lifecycle
  • Harden Media Library and widget data for their HTML and JavaScript output contexts
  • Reject malformed bulk-action values without PHP 8 type errors
  • Correct category-widget redirect URLs containing ampersands

[2.1.0] – 2020-05-13

  • Improve compatibility with PHP7.2+
  • Improve shortcode implementation

[2.0.0] – 2018-06-05

  • Fix bug where count could target wrong taxonomy
  • Fix bug where dropdown widget URL used wrong taxonomy slug

[1.1.0] – 2016-09-28

  • Fix “no_category” admin filtering

[1.0.1] – 2016-09-06

  • Fix theme-side search interference
  • Improve performance of “no_category” filtering

[1.0.0] – 2016-09-06

  • Fix bulk edits
  • Move files into subdirectory for improved mu-plugins support

[0.1.1] – 2015-10-28

  • Improve media grid layout

[0.1.1] – 2015-10-21

  • Initial release