single-post.html

How do I prevent search from listing keywords found in block attributes?

Question: How do I prevent search from listing keywords found in block attributes?

Answer: You’ll probably need a plugin to filter the search results.

To demonstrate the search finding meta content, such as a block’s attributes, try searching for category. The search results will include posts and pages which include blocks that use the categoryId attribute.

An alternative example is to search for higgledypiggledy.

It’s unlikely that this post will be found. But you might find another: Did you expect to find this?

WordPress version: 5.7.2

Gutenberg version: 10.8.0

© Copyright Herb Miller, Bobbing Wide 2021