该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WordPress Media Tags

描述

If you ever wanted to tag your media contents in WordPress, now you can. Tags can provide a comprehensive organization of different medias from different posts. Each tag is working like an own group. Medias with the same tags can be filtered by clicking on their tag names inside the media library. This helps you to organize a large amount of medias and even more: With a shortcode you can display all medias from a specific tag like a gallery.

Features

  • Ability to tag media contents
  • Separate taxonomy for media tags
  • Displaying tags in library
  • Extra field for media tags during upload
  • Support for multiple tags in shortcode
  • Localization in English and German
  • No coding needed
  • Custom image sizes

Usage

To display 5 images which have a tag named ‘Flowers’ and ‘Screenshots’ you can manually add the following shortcode in HTML view:
[mediatag name=”flowers, screenshots” size=”thumbnail” number=5]

Display all images which are tagged with ‘Flowers’ and ‘Screenshots’ in 80 x 80 Pixel with the HTML class ‘demo’:
[mediatag name=”flowers, screenshots” size=”80, 80″ class=”demo”]

name

(string) The name of the tag or tags separated by comma

size

  • thumbnail (default 150px x 150px max)
  • medium (default 300px x 300px max)
  • large (default 640px x 640px max)
  • full (original resolution)
  • 80, 80 (80 x 80 Pixel for example)

number

(integer) The amount of images you want do display. Type ‘-1’ to show all images.

class

(string) The name of your favored class

If you want to add all medias from a specific tag in your template use this code:

Instead of thumbnail you can use the thumbnail sizes like above.

Related Links

Note:
Before installing or upgrading new plugins, please backup your database first!

Thanks

Thanks to all people out there using my plugin, giving ideas and help to develop it further.

屏幕截图

  • screenshot-1.gif
  • screenshot-2.gif
  • screenshot-3.gif

安装

There are several ways to install a plugin in WordPress. For newbies this way is highly recommended:

  1. Navigate to ‘Add New’ under ‘Plugins’ menu in admin area
  2. Upload or choose wordpress-media-tags.zip from ‘Install Plugins’
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

For more information please follow WordPress Codex – Installing Plugins.

常见问题

Will it cause trouble to my library after deactivation?

No, it will not.

How I can be sure that the plugin works properly?

Upload a new picture and give it a tag. Then add a shortcode with this tag in one post.

Will this plugin works together with other plugins?

Yes, it’s isolated in a own class.

评价

阅读所有7条评价

贡献者及开发者

“WordPress Media Tags” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WordPress Media Tags”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.5

  • Adding custom classes and user defined amount of images

1.4

  • Ability to use custom image sizes

1.3

  • Supports now multiple tags in shortcode

1.2

  • Fix for the new Media Manager in WordPress 3.5

1.1

  • Solving bug with shortcode output

1.0

  • Basic functionality with shortcode support.