Limit words displayed in view

By: Sébastien Damery | Asked: 09/28/2023
ForumsCategory: Code HelpLimit words displayed in view
Sébastien Damery asked 1 year ago
Hi, I am trying to limit the number of words displayed in a view, in order to make a listing where all the items have the same height and "pile up" nicely. I cannot find a shortcode or else that make this possible. If you have a solution, I would be very gratefull !   Thanks,    
1 Answers
Victor Font answered 1 year ago

I haven't tried this, but you may be able to use the frm_before_display_content hook. This hook fires before a view's content displays on the screen. The key parameter is $content. You should be able to parse it and adjust the length of your text. https://formidableforms.com/knowledgebase/frm_before_display_content/

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right