Skip Navigation

[Resolved] Excerpt of Body field with HTML for Content Templates

This support ticket is created 4 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.

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 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1830903

Tell us what you are trying to do? Include a new field for a Content Template which displays an excerpt of the body field with HTML. I have a custom content type and I just want to have an excerpt of an article with a link to the external content. So I want to have a field where I just present an excerpt of the body field with the HTML styling. The https://wordpress.org/plugins/advanced-excerpt/ plugin seems to be this, but doesn't seem compatible with Toolset.

Is there any documentation that you are following? Maybe at https://toolset.com/forums/topic/incompatibility-with-advanced-excerpt-plugin/page/2/

Is there a similar example that we can see? See above

What is the link to your site? hidden link

#1831743

Hello,

I have checked the plugin you mentioned above:
See the URL you mentioned above:
https://wordpress.org/plugins/advanced-excerpt/#can%20i%20manually%20call%20the%20filter%20in%20my%20wp%20theme%20or%20plugin%3F
section "Can I manually call the filter in my WP theme or plugin?"

It provides a custom function the_advanced_excerpt() to render it's own excerpt, you can use it to setup your own custom shortcode, and display the custom shortcode in view's loop, more help:
https://developer.wordpress.org/reference/functions/add_shortcode/