relevanssi_the_tags displayed as strings
-
Hey, there, Mikko!
When I use relevanssi_the_tags, it shows up as strings. Here’s an example:
It does the same thing with “echo relevanssi_highlight_terms(get_the_tag_list(”, ‘, ‘), get_search_query());”. Any ideas?
I saw on https://www.relevanssi.com/user-manual/functions/#relevanssi_the_tags someone had a similar issue and resolved it.
“Yes. It worked! Doing this solved the problem:
$tagList = strip_tags(get_the_tag_list(”,’, ‘,”));
And then I’ve put $tagList as an argument inside relevanssi_highlight_terms() .
Thank you so much for your help.
Cheers! o/ ”
But I’m not sure what he actually did to fix it. Thanks in advance!
P.S. This plugin is a God send. I’m grateful to you for it and to Yoast for the article sending me to it.
- The topic ‘relevanssi_the_tags displayed as strings’ is closed to new replies.