Ignore block names in search
This plugin modifies the native WordPress search function to ignore block names in post and page content. With this plugin activated the unexpected search results are fixed which are reported in #3739 and in #56294 Works only for MySQL 8.0.4+ and MariaDB 10.0.5+
This plugin modifies the native WordPress search function to ignore block names in post and page content.
With this plugin activated the unexpected search results are fixed which are reported in #3739 and in #56294
Works only for MySQL 8.0.4+ and MariaDB 10.0.5+
- 01Upload the zip file from this plugin on your plugins page or search for Ignore block name in search and install it directly from the plugin directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Done!
Frequently asked questions.
I don’t see any changes.
This plugin has no settings page. It modifies the internal search to ignore HTML comments and generated wp-block-* class names in the post markup.
Imagine a development blog using a syntaxhighlighting block. If you search on this blog to find posts with the term “syntaxhighlighting” you will get every post with code and not only those post which are really about syntax highlighting.
What about HTML attributes, captions, and shortcodes?
The plugin no longer strips HTML tags or shortcodes. Visible content, HTML attributes, captions, filenames, and shortcodes remain searchable.
I need more features!
This plugin just wants to solve this particular problem without too much overhead. If you need more customizations to your search, then please have a look at Relevanssi or Better Search .
These plugins are building up an index from your content and are therefore solving the underlying issue in another way with much more ways to customize it. And they will be even faster.