Skip Navigation

[Resolved] Split: Multiple content templates for a custom post type – restrict post body content

This support ticket is created 4 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Vane 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1426001

Hi,

My Q2 is:
I prefer not to add also an Excerpt to every each Book, cutting manually the Body content.
AFAIK only Excerpts can be cut by words, but that would be great to be able to cut any multiline text that way.
So could you have also a workaround?

Thank you!

#1426099

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean you have other multiline fields added to your posts and you want to have control on multiline field content and restrict with words or characters?

#1426229

Hi,

I mean I'd like to set and use something like that ( but Block Editor is preferred !):
[wpv-post-excerpt length="30" count="word" more=" - ..."]

According to:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-post-excerpt
what can be set for excerpt, but not for another multiline select types, eg for post body or any CPT (custom post type) multiline text:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#vf-153372

Thank you

#1426295

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

If you do not have post excerpt field added to your post and you will set to display post excerpt field, the settings you set to display with post excerpt field will be applied on post content (body) field.

You can add a "Single Field" block to your view to display the post excerpt and restrict it with the character or word count. Please check the following screenshot: hidden link

Note: yes, there is no option to restrict the content for other multiline custom fields. You are welcome to add a feature request.
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1426351

qq

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.