Linux 软件免费装
Banner图

F4 Media Taxonomies

开发者 faktorvier
更新时间 2024年3月28日 22:23
捐献地址: 去捐款
PHP版本: 4.5.0 及以上
WordPress版本: 6.5
版权: GPLv2
版权网址: 版权信息

标签

tags media categories tag taxonomies taxonomy attachments category custom taxonomies attachment filter library custom taxonomy bulk action

下载

1.0.0 1.0.4 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.5 1.0.6 1.0.7 1.0.8 1.0.1 1.0.15 1.0.16 1.0.17 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4

详情介绍:

F4 Media Taxonomies 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

安装:

  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

屏幕截图:

  • Filter by taxonomies in media library grid
  • Assign one or more taxonomies to an attachment
  • Hierarchical dropdown menu for taxonomies assignment
  • Filter by taxonomies in media insert overlay

常见问题:

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). 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!

更新日志:

1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.17 1.0.16 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0