{"id":28518,"date":"2014-03-23T06:33:03","date_gmt":"2014-03-23T06:33:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/media-search-enhanced\/"},"modified":"2026-01-21T14:32:08","modified_gmt":"2026-01-21T14:32:08","slug":"media-search-enhanced","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/media-search-enhanced\/","author":13553730,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9.2","stable_tag":"0.9.2","tested":"6.8.5","requires":"3.5","requires_php":"","requires_plugins":null,"header_name":"Media Search Enhanced","header_author":"1fixdotio","header_description":"","assets_banners_color":"","last_updated":"2026-01-21 14:32:08","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/1fix.io\/","header_plugin_uri":"https:\/\/1fix.io\/media-search-enhanced","header_author_uri":"https:\/\/1fix.io","rating":4.4,"author_block_rating":0,"active_installs":3000,"downloads":44482,"num_ratings":27,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.2.0":{"tag":"0.2.0","author":"1fixdotio","date":"2014-03-23 06:36:03"},"0.2.1":{"tag":"0.2.1","author":"1fixdotio","date":"2014-03-27 11:48:13"},"0.3.0":{"tag":"0.3.0","author":"1fixdotio","date":"2014-04-22 13:15:57"},"0.4":{"tag":"0.4","author":"1fixdotio","date":"2015-01-01 05:54:57"},"0.5.0":{"tag":"0.5.0","author":"1fixdotio","date":"2015-02-04 11:12:22"},"0.5.1":{"tag":"0.5.1","author":"1fixdotio","date":"2015-02-04 11:19:50"},"0.5.2":{"tag":"0.5.2","author":"1fixdotio","date":"2015-02-27 09:40:09"},"0.5.3":{"tag":"0.5.3","author":"1fixdotio","date":"2015-03-04 00:55:05"},"0.5.4":{"tag":"0.5.4","author":"1fixdotio","date":"2015-05-15 04:06:22"},"0.6.0":{"tag":"0.6.0","author":"1fixdotio","date":"2015-05-27 11:55:48"},"0.6.1":{"tag":"0.6.1","author":"1fixdotio","date":"2015-06-24 03:52:32"},"0.7.0":{"tag":"0.7.0","author":"1fixdotio","date":"2015-09-14 15:14:24"},"0.7.1":{"tag":"0.7.1","author":"1fixdotio","date":"2015-09-15 09:20:05"},"0.7.2":{"tag":"0.7.2","author":"1fixdotio","date":"2015-09-19 17:54:57"},"0.7.3":{"tag":"0.7.3","author":"1fixdotio","date":"2016-02-17 03:59:41"},"0.8.0":{"tag":"0.8.0","author":"1fixdotio","date":"2016-02-29 08:09:04"},"0.8.1":{"tag":"0.8.1","author":"1fixdotio","date":"2023-02-18 09:06:56"},"0.9.0":{"tag":"0.9.0","author":"1fixdotio","date":"2024-02-17 09:13:14"},"0.9.1":{"tag":"0.9.1","author":"1fixdotio","date":"2025-11-04 00:10:53"},"0.9.2":{"tag":"0.9.2","author":"yoren","date":"2026-01-21 14:32:08"}},"upgrade_notice":[],"ratings":{"1":4,"2":0,"3":0,"4":1,"5":22},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.0","0.2.1","0.3.0","0.4","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.7.3","0.8.0","0.8.1","0.9.0","0.9.1","0.9.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3444168,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3444168,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Demo search on the Media Library screen.","2":"Demo search on the Insert Media - Media Library screen."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2264,84,233],"plugin_category":[50],"plugin_contributors":[81315,87048],"plugin_business_model":[],"class_list":["post-28518","plugin","type-plugin","status-publish","hentry","plugin_tags-attachment","plugin_tags-media","plugin_tags-media-library","plugin_category-media","plugin_contributors-1fixdotio","plugin_contributors-yoren","plugin_committers-1fixdotio","plugin_committers-yoren"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/media-search-enhanced.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/media-search-enhanced\/assets\/screenshot-1.png?rev=3444168","caption":"Demo search on the Media Library screen."},{"src":"https:\/\/ps.w.org\/media-search-enhanced\/assets\/screenshot-2.png?rev=3444168","caption":"Demo search on the Insert Media - Media Library screen."}],"raw_content":"<!--section=description-->\n<p>This plugin is made for:<\/p>\n\n<ul>\n<li>Search through all fields in Media Library, including: ID, title, caption, alternative text and description.<\/li>\n<li>Search Taxonomies for Media, include the name, slug and description fields.<\/li>\n<li>Search media file name.<\/li>\n<li>Use shortcode <code>[mse-search-form]<\/code> to insert a media search form in posts and template files. It will search for media by all fields mentioned above.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Using The WordPress Dashboard<\/h4>\n\n<ol>\n<li>Navigate to the 'Add New' in the plugins dashboard<\/li>\n<li>Search for 'media-search-enhanced'<\/li>\n<li>Click 'Install Now'<\/li>\n<li>Activate the plugin on the Plugin dashboard<\/li>\n<\/ol>\n\n<h4>Uploading in WordPress Dashboard<\/h4>\n\n<ol>\n<li>Navigate to the 'Add New' in the plugins dashboard<\/li>\n<li>Navigate to the 'Upload' area<\/li>\n<li>Select <code>media-search-enhanced.zip<\/code> from your computer<\/li>\n<li>Click 'Install Now'<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<h4>Using FTP<\/h4>\n\n<ol>\n<li>Download <code>media-search-enhanced.zip<\/code><\/li>\n<li>Extract the <code>media-search-enhanced<\/code> directory to your computer<\/li>\n<li>Upload the <code>media-search-enhanced<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20to%20link%20media%20to%20the%20file%20itself%20rather%20than%20the%20attachment%20page%20in%20media%20search%20results%20page%3F\"><h3>How to link media to the file itself rather than the attachment page in media search results page?<\/h3><\/dt>\n<dd><p>Please add the following code to the <code>functions.php<\/code> in your theme:<\/p>\n\n<pre><code>function my_get_attachment_url( $url, $post_id ) {\n\n    $url = wp_get_attachment_url( $post_id );\n\n    return $url;\n}\nadd_filter( 'mse_get_attachment_url', 'my_get_attachment_url', 10, 2 );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>Security enhancements.<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Fix: Prevent \"Not unique table\/alias: wp_postmeta\" SQL error by aliasing the postmeta JOIN. Props <a href=\"https:\/\/wordpress.org\/support\/users\/mikemeinz\/\">@mikemeinz<\/a>. See https:\/\/wordpress.org\/support\/topic\/sql-syntax-error-26\/<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>Added the languages pt_BR and es_ES. Thanks to <a href=\"https:\/\/github.com\/1fixdotio\/media-search-enhanced\/pull\/4\">@larodiel<\/a>.<\/li>\n<li>Fixed an issue when searching for images in the Image block, the plugin caused the HTTP 500 error. Also thanks to <a href=\"https:\/\/github.com\/1fixdotio\/media-search-enhanced\/pull\/4\">@larodiel<\/a>.<\/li>\n<\/ul>\n\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>Fix PHP notices and updated the \"Tested up to\" field.<\/li>\n<\/ul>\n\n<h4>0.8.0<\/h4>\n\n<ul>\n<li>Supporting MIME type and date filters when searching in the Media Library. Thanks to <a href=\"https:\/\/wordpress.org\/support\/topic\/results-filters\">@jedifunk<\/a> for spotting this bug.<\/li>\n<\/ul>\n\n<h4>0.7.3<\/h4>\n\n<ul>\n<li>Fix PHP warnings. Thanks to <a href=\"https:\/\/wordpress.org\/support\/topic\/warning-message-in-search-result-page\">@DavidOn3<\/a>.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Bug fix: Make the search work with WPML Media - All languages.<\/li>\n<li>Filter the search form if it's on the media search results page.<\/li>\n<li>Make the images clickable in the search results. Can be disabled by setting the filter <code>mse_is_image_clickable<\/code> to <code>false<\/code>.<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Bug fix: Remove duplicate search results when WPML plugin is activated, THE RIGHT WAY.<\/li>\n<\/ul>\n\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Remove duplicate search results when WPML plugin is activated. Props <a href=\"https:\/\/wordpress.org\/support\/topic\/minor-conflict-with-wpml-media-plugin\">@joseluiscruz<\/a>.<\/li>\n<\/ul>\n\n<h4>0.6.1<\/h4>\n\n<ul>\n<li>Security update: use <code>$wpdb-&gt;prepare<\/code> to process SQL statements. Thanks to <a href=\"https:\/\/profiles.wordpress.org\/daxelrod\/\">@daxelrod<\/a> for this.<\/li>\n<\/ul>\n\n<h4>0.6.0<\/h4>\n\n<ul>\n<li>Add ID to search fields.<\/li>\n<li>Modify the clauses with <code>posts_clauses<\/code> filter.<\/li>\n<\/ul>\n\n<h4>0.5.4<\/h4>\n\n<ul>\n<li>Add filter <code>mse_get_attachment_url<\/code> to modify the attachment URLs in the media search results.<\/li>\n<\/ul>\n\n<h4>0.5.3<\/h4>\n\n<ul>\n<li>Bug fix: Filtered excerpt should be returned, not echoed.<\/li>\n<\/ul>\n\n<h4>0.5.2<\/h4>\n\n<ul>\n<li>Display thumbnails in the media search results.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Use shortcode <code>[mse-search-form]<\/code> to insert a media search form in posts, which only searches for media files (through all fields).<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Search media file name.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>If there are Taxonomies for Media, search the name, slug and description fields.<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Add DISTINCT statement to SQL when query media in the \"Insert Media\" screen<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>The first version<\/li>\n<\/ul>","raw_excerpt":"Search through all fields in Media Library.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/28518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=28518"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/1fixdotio"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=28518"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=28518"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=28518"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=28518"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=28518"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=28518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}