Skip Navigation

[Resolved] Restrict text length

This support ticket is created 5 years, 4 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1289717

I want to display only a set number of characters of "Post Body" text and add a ' more... ' link if it goes over that number.

How can it be done...the code below does not work.

<p>[wpv-post-body length="100" more="..." view_template="None"]</p>

Thanks
---
John

#1289753

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi John,

Thank you for contacting our support forum.

The length parameter won't work for the [wpv-post-body] shortcode.

Could you try using this shortcode instead?
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153377

Thanks,
Shane