Ignore HTML and shortcodes 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+

安装

  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!

常见问题

I don’t see any changes.

This plugin has no settings page, it modifies the internal search to ignore HTML comments 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 the alt/title attribute?

At the moment this is not searched for anymore with this plugin. Maybe I can specifically allow this in a future version of the plugin.

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.

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.

Thanks

Props for helping to fix this go to espiat, l1nuxjedi, mustafauysal, ravishaheshan, and websupporter!

评价

此插件暂无评价。

贡献者及开发者

“Ignore HTML and shortcodes in search” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Ignore HTML and shortcodes in search」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Ignore HTML and shortcodes in search”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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