Skip Navigation

[Resolved] shorten the Body text to the relevant area, and give em tags to the located search terms.

This support ticket is created 6 years, 5 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by pjF 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1094655

pjF

Ah! This is working great!
It wasn't obvious (to me, at least 🙂 that this could be used for search results.

I do have one additional related issue I'm not able to figure out:
The Relevanssi results shorten the Body text to the relevant area, and give em tags to the located search terms.
I did not suppress third-party filters, and I tried the Output "Inherit" option as well.
I searched through other fields, but did not find one for Relevanssi's output.
Is there a way to restore this?
Thank you!

#1094676

Hello,

There isn't such a built-in feature within Views plugin, as a workaround you can try another shortcode [wpv-post-excerpt]:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153377

With this shortcode, you can specific Number of characters or words to be displayed, for example:
[wpv-post-excerpt length="30" count="word" more=" - ..."]

But there isn't the option to give em tags to the located search terms.

If you agree, we can take it as a feature request, our developers will evaluate it.

#1095036

pjF

Yes, I think this would be a great feature request.
Especially considering that Relevanssi is not able to show custom post types with featured images, and Toolset's Views comes close to rounding out the solution. But sacrificing the result output from Relevanssi isn't quite "taking it all the way home."
This might be a team effort between Relevanssi and Toolset, but would love to see it happen! Thank you once again.