Skip Navigation

[Resolved] remove shortcode in relevanssi excerpts

This support ticket is created 3 years, 2 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.

This topic contains 2 replies, has 2 voices.

Last updated by Maurizio Federici 3 years, 2 months ago.

Author
Posts
#2199845
stamp.gif

Is there a way to hide the shortcodes (see stamp) from the excerpts generated by relevanssi in the search results?
Thanks

#2200371

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I take it you are using a page builder such as Divi, editing pages with the page builder, and inserting dynamic content into the page content via shortcodes.

Except, because of certain compatibility issues Toolset introduced a custom form of shortcode, using the {!{...}!} format instead of normal square brackets, and Relevanssi doesn't recognise the custom format as shortcodes and they are not expanded.

I think the only way to resolve the problem would be to edit the content where you have inserted these custom shortcodes and replace the custom format with normal square brackets. I expect that they will then be expanded when displaying the excerpts.

You'll want to verify that they stilll work as expected in the original context.

#2204981

My issue is resolved now. Thank you!