Navigation überspringen

[Gelöst] remove shortcode in relevanssi excerpts

This support ticket is created vor 4 years, 8 months. 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.

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Maurizio Federici vor 4 years, 8 months.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01: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!