Ah, no. The highlighting has nothing to do with the search, so having the word highlighted doesn’t mean Relevanssi is picking it up.
What does the toggle shortcode do?
Hi there,
the toggle shortcode is part of many themes and wraps text so that the user sees a question and when clicking on the question the answer is revealed. eg.
[toggle title_open=”How do I become a member?” title_closed=”How do I become a member?”]
Please go to the login form and we will assess your application.
[/toggle]
The title of the Question would appear with a link on the page that says “How do I become a member? On clicking the question /link it expands to reveal the answer “Please go to the login form and we will assess your application”.
Hope this makes sense. The following website also explains this in more detail.
http://para.llel.us/themes/mingle-wp/shortcodes/tabs-and-toggles/
Kind Regards
KatieKat
Hmm… Does Relevanssi index anything from the toggle? Content or the title? It depends on how the shortcode works, what it prints out when it’s expanded with do_shortcode().
Apologies but I don’t understand your reply. As far as I can see it is indexing the content which is why the word is highlighted when you open up the question or answer.
Forget the highlighting – that doesn’t tell you anything about what Relevanssi is indexing or not. Relevanssi can highlight it, even when it’s not being indexed.
If you put a unique non-word (say “zrrrlllb”) inside a toggle shortcode and save the post, can you find the post when you search for that word? What if you put the word in the toggle title?