Title: Ignore block names in search
Author: Torsten Landsiedel
Published: <strong>6 January 2023</strong>
Last modified: 1 July 2026

---

Search plugins

![](https://ps.w.org/ignore-block-name-in-search/assets/banner-772x250.png?rev=3590389)

![](https://ps.w.org/ignore-block-name-in-search/assets/icon-256x256.png?rev=3590389)

# Ignore block names in search

 By [Torsten Landsiedel](https://profiles.wordpress.org/zodiac1978/)

[Download](https://downloads.wordpress.org/plugin/ignore-block-name-in-search.1.3.1.zip)

 * [Details](https://en-gb.wordpress.org/plugins/ignore-block-name-in-search/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/ignore-block-name-in-search/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/ignore-block-name-in-search/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/ignore-block-name-in-search/#developers)

 [Support](https://wordpress.org/support/plugin/ignore-block-name-in-search/)

## Description

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](https://github.com/WordPress/gutenberg/issues/3739) and in [#56294](https://core.trac.wordpress.org/ticket/56294)

**Works only for MySQL 8.0.4+ and MariaDB 10.0.5+**

## Installation

 1. Upload 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
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Done!

## FAQ

### 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](https://wordpress.org/plugins/relevanssi/)
or [Better Search](https://wordpress.org/plugins/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.

### Can I help you?

Thanks for asking! Yes, I’m very interested in edge cases and incompatibilities (
other plugins or server configurations).
 Please report on the [Github page](https://github.com/Zodiac1978/wp-search-ignore-block-names/issues).

### Thanks

Props for helping to fix this go to [espiat](https://profiles.wordpress.org/espiat),
[l1nuxjedi](https://profiles.wordpress.org/l1nuxjedi), [mustafauysal](https://profiles.wordpress.org/mustafauysal/),
[ravishaheshan](https://profiles.wordpress.org/ravishaheshan), and [websupporter](https://profiles.wordpress.org/websupporter/)!

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Ignore block names in search” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Torsten Landsiedel ](https://profiles.wordpress.org/zodiac1978/)

“Ignore block names in search” has been translated into 2 locales. Thank you to 
[the translators](https://translate.wordpress.org/projects/wp-plugins/ignore-block-name-in-search/contributors)
for their contributions.

[Translate “Ignore block names in search” into your language.](https://translate.wordpress.org/projects/wp-plugins/ignore-block-name-in-search)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ignore-block-name-in-search/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ignore-block-name-in-search/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ignore-block-name-in-search/)
by [RSS](https://plugins.trac.wordpress.org/log/ignore-block-name-in-search/?limit=100&mode=stop_on_copy&format=rss).

## Change Log

#### 1.3.1

 * Ignore generated `wp-block-*` class names in addition to block editor comments

#### 1.3.0

 * Limit filtering to block editor comments to avoid hiding visible content when
   markup contains unescaped `<` or `>` characters
 * Keep shortcodes and HTML attributes searchable

#### 1.2.0

 * Fixed broken search for title and excerpt
 * Ignore shortcodes additionally to markup
 * Rename plugin

#### 1.1.1

 * Added back link to error message, if REGEXP_REPLACE is not supported
 * Fixed some typos

#### 1.1.0

 * Changed approach to remove the markup (now requires MySQL 8.0.4+ or MariaDB 10.0.5
   +)

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.3.1**
 *  Last updated **4 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0.0 or higher **
 *  Tested up to **7.0.8**
 *  Languages
 * [English (US)](https://wordpress.org/plugins/ignore-block-name-in-search/), [German](https://de.wordpress.org/plugins/ignore-block-name-in-search/)
   and [Portuguese (Portugal)](https://pt.wordpress.org/plugins/ignore-block-name-in-search/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ignore-block-name-in-search)
 * Tags
 * [better search](https://en-gb.wordpress.org/plugins/tags/better-search/)[editor](https://en-gb.wordpress.org/plugins/tags/editor/)
   [gutenberg](https://en-gb.wordpress.org/plugins/tags/gutenberg/)[search](https://en-gb.wordpress.org/plugins/tags/search/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/ignore-block-name-in-search/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ignore-block-name-in-search/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ignore-block-name-in-search/reviews/)

## Contributors

 *   [ Torsten Landsiedel ](https://profiles.wordpress.org/zodiac1978/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ignore-block-name-in-search/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LCH9UVV7RKDFY)