{"id":165526,"date":"2022-11-16T22:37:05","date_gmt":"2022-11-16T22:37:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/media-search-plus\/"},"modified":"2022-11-16T22:36:37","modified_gmt":"2022-11-16T22:36:37","slug":"media-search-plus","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/media-search-plus\/","author":17619803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8.2","stable_tag":"0.8.2","tested":"6.1.10","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Media Search Plus","header_author":"PhilLehmann","header_description":"Search through all fields in Media Library.","assets_banners_color":"","last_updated":"2022-11-16 22:36:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/PhilLehmann\/media-search-plus","header_author_uri":"http:\/\/phil.to","rating":0,"author_block_rating":0,"active_installs":10,"downloads":904,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.8.2":{"tag":"0.8.2","author":"philrykoff","date":"2022-11-16 22:36:37"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.8.2"],"block_files":[],"assets_screenshots":[],"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":[],"plugin_business_model":[],"class_list":["post-165526","plugin","type-plugin","status-publish","hentry","plugin_tags-attachment","plugin_tags-media","plugin_tags-media-library","plugin_category-media","plugin_committers-philrykoff"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/media-search-plus.svg","icon_2x":false,"generated":true},"screenshots":[],"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>[msp-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-plus'<\/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-plus.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-plus.zip<\/code><\/li>\n<li>Extract the <code>media-search<\/code> directory to your computer<\/li>\n<li>Upload the <code>media-search<\/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( 'msp_get_attachment_url', 'my_get_attachment_url', 10, 2 );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.8.2<\/h4>\n\n<ul>\n<li>Forked by PhilLehmann (original author so far 1fixdotio - http:\/\/1fix.io)<\/li>\n<li>Made compatible with WordPress 6.1<\/li>\n<li>Renamed shortcode <code>[mse-search-form]<\/code> to <code>[msp-search-form]<\/code><\/li>\n<li>Renamed filter <code>mse_get_attachment_url<\/code> to <code>msp_get_attachment_url<\/code><\/li>\n<li>Removed clutter in the code<\/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 to actually find something.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/165526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=165526"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/philrykoff"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=165526"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=165526"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=165526"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=165526"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=165526"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=165526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}