Skip Navigation

[Resolved] Relevanssi Highlights

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1426291

I switched back to Views from Blocks because Blocks was not sorting based on the Relevanssi "relevant" sort. I also used the following to get the Relevanssi Excerpts with highlights: https://toolset.com/forums/topic/instead-of-toolset-excerpt-display-relevanssi-excerpt-in-results.

Now I would like to see how to get the search terms to also highlight in the actual Post after I clink on the hyperlink. (e.g. I get the list of excerpts with highlight ... clink on the Post link .. then I would like to view the Post with the highlighted search terms). Relevanssi does this without toolset, but I would like for it to work with toolset.

Also, when do you think Blocks will support Relevanssi sorting like Views does?

Thanks for all of the help.

#1427395

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To highlight the search term in results using relevanssi, you need to create a shortcode to wrap the relevanssi function: relevanssi_highlight_terms()

Please check the following related tickets with a solution that may help you:
=> https://toolset.com/forums/topic/custom-search-relevanssi/#post-492973
=> https://toolset.com/forums/topic/custom-search-results-archive-with-relevanssi/#post-587117

Please adjust the code where/if required and let me know if you need further assistance on it.