HGW Better internal link search for Block editor
HGW Better internal link search for Block editor
Description
HGW Better internal link search for Block editor improves the default internal link search inside the block editor by adding a post type or category selector to the link popup.
This allows editors to narrow down search results to specific post types such as Posts, Pages, or custom post types.
Features
- Adds a clean “post type and category filter” dropdown above Block editor link search results.
- Works with all REST-visible and publicly queryable post types.
- No database queries or custom endpoints — fully uses WordPress core APIs.
- Loads only inside the editor, never on the front-end.
- Lightweight, fast, and compatible with all major themes and plugins.
Installation
- Upload plugin folder to the
/wp-content/plugins/directory - Activate HGW Better internal link search for Block editor through the Plugins menu.
- Open any post or page in the block editor.
- Click the “Link” icon inside a text block.
- You’ll now see a new Type dropdown above the search results.
Screenshots
Faq
No. It only loads within the WordPress block editor (enqueue_block_editor_assets) and has zero effect on the front-end.
Yes. Any registered post type that is viewable and exposed through the REST API will automatically appear in the list.
Yes. Any public REST-enabled taxonomy can be enabled from the plugin settings.
Yes. Visit Settings HGW Internal Link Filter to customize the options.
Yes, as long as they use Block editor native LinkControl component and it detects and supports product, download, and related taxonomies automatically.
Reviews
Changelog
1.0.2
- NEW: Compatibility with WordPress 6.9
- Improved: Improved description and naming of plugin functions
1.0.1
- NEW: Add taxonomy support to filter (e.g., category, product_cat)
- NEW: Add Settings page
- NEW: Ability to configure included post types & taxonomies
- NEW: Added “Settings” link in plugin list for quick access
- CHANGED: Default selection is now “All” — no preselected type
1.0.0
- Initial release.
- Added Post Type dropdown to Block editor LinkControl.
- Automatic detection of REST-visible post types.
- Zero front-end impact, editor-only integration.
- Output of inline JS configuration to use wp_json_encode() with JSON_HEX_* flags.


