Title: F4 Media Taxonomies
Author: FAKTOR VIER
Published: <strong>2017 年 4 月 14 日</strong>
Last modified: 2026 年 9 月 28 日

---

搜索插件

![](https://ps.w.org/f4-media-taxonomies/assets/banner-772x250.jpg?rev=1982635)

![](https://ps.w.org/f4-media-taxonomies/assets/icon-256x256.jpg?rev=1982635)

# F4 Media Taxonomies

 作者：[FAKTOR VIER](https://profiles.wordpress.org/faktorvier/)

[下载](https://downloads.wordpress.org/plugin/f4-media-taxonomies.1.1.8.zip)

 * [详情](https://cn.wordpress.org/plugins/f4-media-taxonomies/#description)
 * [评价](https://cn.wordpress.org/plugins/f4-media-taxonomies/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/f4-media-taxonomies/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/f4-media-taxonomies/#developers)

 [支持](https://wordpress.org/support/plugin/f4-media-taxonomies/)

## 描述

[F4 Media Taxonomies](https://www.f4dev.ch) provides the ability to filter the media
library by categories, tags and/or custom taxonomies.
 You can use the built-in 
taxonomies (category or post_tag) or any custom taxonomy.

If a taxonomy is enabled for attachments, you can assign as many of their terms 
to an attachment as you need.
 You can assign them directly in the media library
or in every media-selector overlay. There is also a nifty bulk function in the media
library, which allows you to assign a single term to multiple attachments at once.

Attachments can then be filtered by these terms. The filters are available in the
media library and in every media-selector overlay.

Different than other similar plugins, **F4 Media Taxonomies is 100% free!**

#### Usage

See FAQ for a guide how to enable categories, tags and custom taxonomies.

#### Features overview

 * Use any taxonomy (built-in or custom)
 * Assign one or more terms to an attachment in media library/overlay
 * Bulk assign terms to multiple attachments at once in media library
 * Filter attachments by terms in media library/overlay
 * Easy to use
 * Lightweight and optimized
 * 100% free!

## 屏幕截图

[⌊Filter by taxonomies in media library list⌉⌊Filter by taxonomies in media library
list⌉[

Filter by taxonomies in media library list

[⌊Filter by taxonomies in media library grid⌉⌊Filter by taxonomies in media library
grid⌉[

Filter by taxonomies in media library grid

[⌊Assign one or more taxonomies to an attachment⌉⌊Assign one or more taxonomies 
to an attachment⌉[

Assign one or more taxonomies to an attachment

[⌊Hierarchical dropdown menu for taxonomies assignment⌉⌊Hierarchical dropdown menu
for taxonomies assignment⌉[

Hierarchical dropdown menu for taxonomies assignment

[⌊Filter by taxonomies in media insert overlay⌉⌊Filter by taxonomies in media insert
overlay⌉[

Filter by taxonomies in media insert overlay

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/f4-media-taxonomies` directory,
    or install the plugin through the WordPress plugins screen directly
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. See FAQ for a guide how to enable categories, tags and custom taxonomies
 4. All taxonomies that are assigned to the attachment post-type are automatically 
    enabled

## 常见问题

### How to enable categories

The built-in taxonomy `category` can be enabled with this snippet. Just put it into
your `functions.php`:

    ```
    add_action('init', function() {
        register_taxonomy_for_object_type('category', 'attachment');
    });
    ```

### How to enable tags

The built-in taxonomy `post_tag` can be enabled with this snippet. Just put it into
your `functions.php`:

    ```
    add_action('init', function() {
        register_taxonomy_for_object_type('post_tag', 'attachment');
    });
    ```

### How to enable custom taxonomies

There are two ways to enable custom taxonomies for attachments:

**New taxonomy:**

If the taxonomy does not exist yet and you want to create a new one, you have to
set the object_type in the `register_taxonomy()` function to `attachment` ([see WordPress codex](https://codex.wordpress.org/Function_Reference/register_taxonomy#Parameters)).

    ```
    add_action('init', function() {
        register_taxonomy(
            'media-category',
            'attachment'
        );
    });
    ```

**Existing taxonomy:**

If the taxonomy is already registered, you can assign it with this snippet. Just
put it into your `functions.php` and change `media-category` to your taxonomy:

    ```
    add_action('init', function() {
        register_taxonomy_for_object_type('media-category', 'attachment');
    });
    ```

### The filters do not appear in the media overlay

For a better performance, we only include the scripts and files when they are needed.
Some plugins can cause a problem with this functionality.
 For this case we offer
a hook, which allows you to enable the filter for special conditions. If this hook
returns `true`, the filter is enabled for the current site.

    ```
    add_filter('F4/MT/Core/has_filter', function() {
        return true;
    });
    ```

### Can I enable taxonomies directly in the backend?

No. We simply use the taxonomies that are registered in the code. Maybe in the future,
but we want to keep this plugin as lightweight and simple as possible.

### Is it really free?

Yes, absolutely!

## 评价

![](https://secure.gravatar.com/avatar/9f6133a07d1ccf7caf4264480898c6362573e7f7ecfa14810559fbf78cbd12ef?
s=60&d=retro&r=g)

### 󠀁[Excellent, working, free – THANK YOU](https://wordpress.org/support/topic/excellent-working-free-thank-you/)󠁿

 [Lubos Tomicek](https://profiles.wordpress.org/lubostomicek/) 2025 年 11 月 19 
日

Excellent plugin. With added taxonomies I can sort media easily. Excellent. Thank
you.

![](https://secure.gravatar.com/avatar/68e3a97050d62468500b0bca544586497e8190bdec5c2596ee879dedee7f5b0b?
s=60&d=retro&r=g)

### 󠀁[Briljant!!](https://wordpress.org/support/topic/briljant-4/)󠁿

 [daanboer](https://profiles.wordpress.org/daanboer/) 2024 年 5 月 9 日

After testing a bunch of plugins that promised a lot but never did the thing…This
plugin is simple, light, and works like a charme!!

![](https://secure.gravatar.com/avatar/3322c0ea77731b85083405726337953165d8573de0c85fce97bad7f6cac8db3e?
s=60&d=retro&r=g)

### 󠀁[Ace](https://wordpress.org/support/topic/ace-24/)󠁿

 [Roy Orbitson](https://profiles.wordpress.org/lev0/) 2023 年 4 月 17 日

Good clean solution to tagging uploaded files.

![](https://secure.gravatar.com/avatar/9548e5045a1b7a8588b84fe05eb80999ba2c88cc8921fbe0711610cc1d8c2e98?
s=60&d=retro&r=g)

### 󠀁[Perfect Perfect Perfect](https://wordpress.org/support/topic/perfect-perfect-perfect-8/)󠁿

 [slawson612](https://profiles.wordpress.org/slawson612/) 2022 年 8 月 23 日

It took me awhile to find this but so glad I did. I was just about to start coding
it myself. It uses the *built-in* categories!!! No extra clutter, neat, simple, 
just waht I was looking for.

![](https://secure.gravatar.com/avatar/e8f362f7adf2dc6ec333e5b003f5af5d9df7d7907244de2545303631c7b37920?
s=60&d=retro&r=g)

### 󠀁[Effizient](https://wordpress.org/support/topic/effizient/)󠁿

 [Florenz Villegas](https://profiles.wordpress.org/flovi/) 2022 年 1 月 27 日

Genau das, was ich gesucht habe. Ist schon extrem zeitsparend, wenn man nicht jedes
Bild einzeln editieren muss, nur um eine Kategorie oder ein Schlagwort zu ergänzen.
Damit füllt man ganz einfach die Lücken in den Daten, ohne vor dem Zeitaufwand zu
kapitulieren. Vielen Dank.

![](https://secure.gravatar.com/avatar/4cedbca78d5e9004eaecb770baea85601cbc2f3e8ab8000472c3debe38d073dc?
s=60&d=retro&r=g)

### 󠀁[Perfect, Clean Solution](https://wordpress.org/support/topic/perfect-clean-solution/)󠁿

 [Rasso Hilber](https://profiles.wordpress.org/nonverbla/) 2022 年 1 月 23 日

Just installed this plugin on one of my sites. Does everything I expected and the
source code also looks clean and lean! 5 Stars, thank you Faktor 4!!

 [ 阅读所有13条评价 ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ FAKTOR VIER ](https://profiles.wordpress.org/faktorvier/)

「F4 Media Taxonomies」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/f4-media-taxonomies/contributors)
为本插件所做的贡献。

[帮助将「F4 Media Taxonomies」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/f4-media-taxonomies)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/f4-media-taxonomies/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/f4-media-taxonomies/)，或通过[RSS](https://plugins.trac.wordpress.org/log/f4-media-taxonomies/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/f4-media-taxonomies/)。

## 更新日志

#### 1.1.8

 * Support WordPress 7.1
 * Requires at least WP 6.0

#### 1.1.7

 * Support WordPress 7.0

#### 1.1.6

 * Support WordPress 6.9

#### 1.1.5

 * Fix broken access control vulnerability
 * Update selectize.js to version 0.15.2 and add condition to admin upload for CMB2
 * Support WordPress 6.8

#### 1.1.4

 * Remove double array key
 * Support WordPress 6.5

#### 1.1.3

 * Support WordPress 6.1

#### 1.1.2

 * Update www.f4dev.ch links

#### 1.1.1

 * Fix bulk action and taxonomy filter dropdowns
 * Improve the grid view performance

#### 1.1.0

 * Terms are now lazy loaded with ajax in assignment select
 * Term assignment styles and scripts optimized
 * Term assignment sorting fixed
 * Update selectize to verison 0.13.5

#### 1.0.17

 * Support WordPress 6.0

#### 1.0.16

 * Correctly update post term count (thanks to @nonverbla for the hint)
 * Support WordPress 5.9

#### 1.0.15

 * Support WordPress 5.8

#### 1.0.14

 * Support WordPress 5.7

#### 1.0.13

 * Fix taxonomy select for new jQuery version
 * Support WordPress 5.6

#### 1.0.12

 * Fix behaviour after taxonomy selection

#### 1.0.11

 * Support WordPress 5.5

#### 1.0.10

 * Support WordPress 5.4

#### 1.0.9

 * Fix bottom bulk action button in media list

#### 1.0.8

 * Add CMB2 plugin support

#### 1.0.7

 * WordPress 5.3 compatibility fixes
 * Optimized dropdown width in media modal

#### 1.0.6

 * Update deprecated get_terms function

#### 1.0.5

 * Few PHP and JS code optimisations

#### 1.0.4

 * Fix customizer error
 * Fix missing dropdowns in media overlay

#### 1.0.3

 * Fix filter error

#### 1.0.2

 * Show only taxonomies with show_ui true

#### 1.0.1

 * Version upgrade for correct repository infos

#### 1.0.0

 * Initial stable release

## 额外信息

 *  版本 **1.1.8**
 *  最后更新：**2 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/f4-media-taxonomies/) 、 [French (France)](https://fr.wordpress.org/plugins/f4-media-taxonomies/)、
   [German](https://de.wordpress.org/plugins/f4-media-taxonomies/) 、 [German (Austria)](https://de-at.wordpress.org/plugins/f4-media-taxonomies/)
   和 [German (Switzerland)](https://de-ch.wordpress.org/plugins/f4-media-taxonomies/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/f4-media-taxonomies)
 * 标签
 * [attachments](https://cn.wordpress.org/plugins/tags/attachments/)[filter](https://cn.wordpress.org/plugins/tags/filter/)
   [library](https://cn.wordpress.org/plugins/tags/library/)[media](https://cn.wordpress.org/plugins/tags/media/)
 *  [高级视图](https://cn.wordpress.org/plugins/f4-media-taxonomies/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  13 条 5 星评价     ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/f4-media-taxonomies/reviews/)

## 贡献者

 *   [ FAKTOR VIER ](https://profiles.wordpress.org/faktorvier/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/f4-media-taxonomies/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.faktorvier.ch/donate/)