Yes. Relevanssi has a shortcode noindex you can use to exclude content from search, anything wrapped inside the noindex shortcode will be excluded from the Relevanssi index.
You can also filter everything that goes in the index without any modifications to the pages by writing a filter function on the relevanssi_post_content filter hook.
nice! Thanks 🙂
too difficult for me though, that’s why I use plugins….
Well, the noindex shortcode is your friend then, you just have to edit your pages. Since this is a custom thing, there’s no non-code solution that could be installed as a plugin, it has to be customized to your use case.
(If you show me what the banner looks like, I can give you the filter function code, it’s just couple of lines of code.)
Thanks. How does the banner look like in the actual raw post content?
Hi Mikko,
I’m sorry, the page is still under construction, so I can only send you screenshots
Since you’re running Relevanssi on the site, it must exist. Just copy and paste from the post edit page from the HTML view. Screenshot doesn’t help, I need the actual code in a form I can copy and paste myself.
Hi there,
ooooww sorry, I was thinking of switching to Relevanssi but needed to know the above was possible before I would.
So, will switch first and then come back to you is that ok?