Exclude Attachment Link Suggestions
Exclude Attachment Link Suggestions
Description
The Exclude Attachment Link Suggestions plugin enhances your WordPress editing experience by filtering out attachment links from the link suggestions that appear when you’re adding links in the Gutenberg block editor.
When you type in the link input field in any Gutenberg block, WordPress normally suggests various content including posts, pages, and media attachments. This plugin specifically removes attachment suggestions, leaving only meaningful content like posts and pages in your link suggestions.
Key Features:
- Automatically filters out attachment links from Gutenberg editor link suggestions
- Works seamlessly with all Gutenberg blocks that support linking
- Lightweight and performance-optimized
- Settings page to choose which post types are excluded from link suggestions
- Compatible with WordPress 5.0+ and the latest versions
Why Use This Plugin?
- Cleaner Interface: Reduces clutter in link suggestions by removing irrelevant attachment links
- Better User Experience: Makes it easier to find actual content (posts/pages) when adding links
- Improved Workflow: Streamlines the content creation process for editors and content creators
This plugin is perfect for content creators, bloggers, and website administrators who want a more streamlined linking experience in the WordPress block editor.
Installation
- Upload the plugin files to the
/wp-content/plugins/exclude-attachment-link-suggestionsdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- That’s it! The plugin works automatically without any configuration needed.
Faq
No configuration is required. Media attachments are excluded by default. You can optionally visit Settings Exclude Link Suggestions to choose additional post types to exclude.
This plugin requires WordPress 5.0 or higher and works with all modern versions including the latest releases.
No, this plugin only affects link suggestions in the block editor. Your Media Library and attachment management remain completely unchanged.
Yes, the plugin works with all post types and any Gutenberg blocks that support linking functionality.
The plugin is extremely lightweight and only loads minimal JavaScript in the block editor. It has no impact on frontend performance.
Yes, you can still manually link to attachments by entering the URL directly or using other linking methods. This plugin only removes attachments from the automatic suggestions.
Reviews
Fantastic, no configuration required
By alamea (Alamea) on August 7, 2026
Finally, the attachments have disappeared from the link suggestions. It also works with Metabox CPT. Thank you so much for this helpful plugin.
Super!
By Kiryamboff (kirill1986) on February 5, 2026
This is a very useful plugin! I recommend it to everyone! Now the attachment folders don't annoy you when you choose what to link to!
Changelog
1.0.3
- Dev: Updated Freemius SDK and WordPress tested-up-to version.
- New: Added settings page to control which post types are excluded from block editor link suggestions.
1.0.2
- Dev: Update freemius SDK and maintenance update.
1.0.1
- Dev: Update freemius SDK and maintenance update.
1.0.0
- Initial release
- Filters attachment links from Gutenberg editor link suggestions
- Compatible with WordPress 6.8
- Tested with latest Gutenberg versions