Beschrijving
Try it live in your browser — launch the WordPress Playground demo. Boots a WordPress instance with this plugin active and a Media Library seeded with 8 attachments, so you can see the cross-field search in action immediately. Searching mountain returns 6 hits (matches in filename and alt text included) — core WordPress search would only find 3.
Deze plugin is gemaakt voor:
- Doorzoek alle velden in de mediabibliotheek inclusief: ID, titel, bijschrift, alternatieve tekst en beschrijving.
- Zoek taxonomieën voor media, inclusief de naam, slug en beschrijving velden.
- Search media file name.
- Multi-term search — Anywhere in the WordPress admin (the Media Library list view at
upload.php, the “Add Media” modal, and other admin screens), use commas to search for multiple items at once (e.g.image-a.jpg, photo-2.jpg). Matches attachments containing any of the terms. Limited to 10 terms per search. Frontend searches still treat commas as literal characters, as a query-amplification guard for public pages. - 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.
Schermafbeeldingen
Installatie
Using The WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Zoek naar ‘media-search-enhanced’
- Klik op ‘Nu installeren’
- Activeer de plugin op het plugin dashboard
Uploaden in het WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Navigeer naar het ‘Upload’ gebied
- Select
media-search-enhanced.zipfrom your computer - Klik op ‘Nu installeren’
- Activate the plugin in the Plugin dashboard
FTP gebruiken
- Download
media-search-enhanced.zip - Extract the
media-search-enhanceddirectory to your computer - Upload the
media-search-enhanceddirectory to the/wp-content/plugins/directory - Activate the plugin in the Plugin dashboard
FAQ
-
Hoe kan ik media linken naar het bestand zelf in plaats van naar de pagina met bijlagen in de media zoekresultatenpagina?
-
Please add the following code to the
functions.phpin 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 );
Beoordelingen
Bijdragers & ontwikkelaars
“Media Search Enhanced” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Media Search Enhanced” is vertaald in 3 localen. Dank voor de vertalers voor hun bijdragen.
Vertaal “Media Search Enhanced” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.0.0
- New: Multi-term search — use commas to search for multiple items at once anywhere in wp-admin, including the Media Library list view and the “Add Media” modal (e.g.
sunset.jpg, logo.png). Limited to 10 terms. Frontend searches still treat commas as literal characters. - Performance: Replaced LEFT JOINs + DISTINCT with EXISTS subqueries, eliminating temporary tables and improving search speed up to 10x on large media libraries.
- Performance: Numeric searches (e.g. searching by attachment ID) now use exact integer matching instead of string comparison, enabling primary key index usage.
- Compatibility: The plugin no longer overwrites the entire WHERE clause. Conditions from WordPress core and other plugins are now preserved.
- Security: Fixed reflected XSS in the search form placeholder.
- Security: Private attachments are now only visible to users with appropriate permissions (editors/admins see all; authors see only their own).
- Developer: Added
mse_max_search_termsfilter to customize the multi-term cap (default 10). Addedmse_allow_multi_term_searchfilter to customize where multi-term search is allowed; defaults tois_admin().
0.9.2
- Security enhancements.
0.9.1
- Fix: Prevent “Not unique table/alias: wp_postmeta” SQL error by aliasing the postmeta JOIN. Props @mikemeinz. See https://wordpress.org/support/topic/sql-syntax-error-26/
0.9.0
- Added the languages pt_BR and es_ES. Thanks to @larodiel.
- Fixed an issue when searching for images in the Image block, the plugin caused the HTTP 500 error. Also thanks to @larodiel.
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
- Fix PHP warnings. Thanks to @DavidOn3.
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_clickabletofalse.
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->prepareto process SQL statements. Thanks to @daxelrod for this.
0.6.0
- Add ID to search fields.
- Modify the clauses with
posts_clausesfilter.
0.5.4
- Add filter
mse_get_attachment_urlto modify the attachment URLs in the media search results.
0.5.3
- Bug fix: Filtered excerpt should be returned, not echoed.
0.5.2
- Toon thumbnails in de media zoekresultaten.
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
- De eerste versie

