Skip Navigation

[Resolved] Conditional Output of Post Excert Length

This support ticket is created 7 years, 3 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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#561113

Hai,

I would like to display post excert only when length is more than 50.
[wpv-conditional if=[wpv-post-excert length>50]
[wpv-post-excerpt]

Need help in this...

#561146

Dear vijaya,

There isn't such a built-in feature within shortcode [wpv-post-excerpt] or other shortcodes of Views plugin, see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-excerpt
It can only display the post excerpt, it can not count the length, I suggest you setup your own custom shortcode for it, more help:
add shortcode
https://codex.wordpress.org/Function_Reference/add_shortcode
Counts the number of words inside string
hidden link

For your reference.