Skip Navigation

[Resolved] Set Post Excerpt word limit to WP max in a Custom Template Single Field Block

This support ticket is created 2 years, 9 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 malcolmF-2 2 years, 9 months ago.

Author
Posts
#2384295

Tell us what you are trying to do?
Ensure all posts using the custom layout can display the default WP limit of 55 words of the excerpt.

The problem I am seeing is that the settings for the word length of the excerpt are basing the upper limit on the "active" post. The current post has only 34 words in the post. It guessed that I only wanted to display 30. (I do not want to display an ellipsis and "read more" for an extra four words). It allows me to increase the amount to 34 but not to 55.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
hidden link
What is the link to your site?
hidden link

#2384419

Nigel
Supporter

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

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

Hi there

We are aware of the UI problems with the post excerpt length selector and have an internal ticket to fix it.

In the meantime, the simplest solution is to use the legacy wpv-post-excerpt shortcode to generate the excerpt, which you can add to a Custom HTML block (or any other block that expands shortcodes).

See https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-excerpt

In your case, you would likely need:

[wpv-post-excerpt length="55" count="word"]
#2386913

I'll use the workaround that you provided - thanks