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

Media Search Enhanced

描述

This plugin is made for:

  • Search through all fields in Media Library, including: ID, title, caption, alternative text and description.
  • Search Taxonomies for Media, include the name, slug and description fields.
  • Search media file name.
  • Use shortcode [mse-search-form] to insert a media search form in posts and template files. It will search for media by all fields mentioned above.

屏幕截图

  • Demo search on the Media Library screen.
  • Demo search on the Insert Media - Media Library screen.

安装

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘media-search-enhanced’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select media-search-enhanced.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download media-search-enhanced.zip
  2. Extract the media-search-enhanced directory to your computer
  3. Upload the media-search-enhanced directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

常见问题

How to link media to the file itself rather than the attachment page in media search results page?

Please add the following code to the functions.php in your theme:

function my_get_attachment_url( $url, $post_id ) {

    $url = wp_get_attachment_url( $post_id );

    return $url;
}
add_filter( 'mse_get_attachment_url', 'my_get_attachment_url', 10, 2 );

评价

2021年12月21日
I've noticed that a few other users on the support pages have reported that this plugin, which hasn't been updated for the last two years, no longer works as intended. In fact, it breaks the media library search functionality completely. I can attest to this. This is very unfortunate as the functionality that this plugin seemingly used to provide would be very useful to me.
2019年11月1日
I find this plugin really convenient because I name my media files only with alphabets, but I write the alternative text in my non-alphabetical language. After the installation, I can search both titles and ALT text. Also, it is a plus that it needs no set-up. I am really grateful to the developer for creating and maintaining this useful plugin.
2017年7月10日
I had problems with finding in media library search the images that I have added in the passed few years, searching them with the file name wasn't working at all.. till I installed this plugin, things start to work and I don't have anymore this problem! Great job! Thanks.
2017年3月29日
This plugin was essential for my photoblog and its thousands of media library files. How else could I ever expect to find what I was looking for?
2017年2月10日
The functionality is a must have. I don't understand why it is not implemented in WordPress by default. It works very well on my WordPress 4.6.3 except that… the sorting column functionality of WordPress doesn't work correctly anymore when your extension is activated. In the Media lib, I click on "Title" or "Date" column headers and the result is not all consistent. I hope you'll get this review and fix the issue. Thank you.
阅读所有27条评价

贡献者及开发者

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

贡献者

“Media Search Enhanced”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Media Search Enhanced”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.8.1

  • Fix PHP notices and updated the “Tested up to” field.

0.8.0

  • Supporting MIME type and date filters when searching in the Media Library. Thanks to @jedifunk for spotting this bug.

0.7.3

0.7.2

  • Bug fix: Make the search work with WPML Media – All languages.
  • Filter the search form if it’s on the media search results page.
  • Make the images clickable in the search results. Can be disabled by setting the filter mse_is_image_clickable to false.

0.7.1

  • Bug fix: Remove duplicate search results when WPML plugin is activated, THE RIGHT WAY.

0.7.0

  • Remove duplicate search results when WPML plugin is activated. Props @joseluiscruz.

0.6.1

  • Security update: use $wpdb->prepare to process SQL statements. Thanks to @daxelrod for this.

0.6.0

  • Add ID to search fields.
  • Modify the clauses with posts_clauses filter.

0.5.4

  • Add filter mse_get_attachment_url to modify the attachment URLs in the media search results.

0.5.3

  • Bug fix: Filtered excerpt should be returned, not echoed.

0.5.2

  • Display thumbnails in the media search results.

0.5

  • Use shortcode [mse-search-form] to insert a media search form in posts, which only searches for media files (through all fields).

0.4

  • Search media file name.

0.3

  • If there are Taxonomies for Media, search the name, slug and description fields.

0.2.1

  • Add DISTINCT statement to SQL when query media in the “Insert Media” screen

0.2.0

  • The first version