I'm developing a directory site that will take input from user forms on the front-end. One of the custom fields in this form is for a bio (or introduction) section. I used a custom field for this rather than the standard WordPress content field because I don't want the user to have access to the wysiwyg editor; I want to keep content uniform...
The challenge I have is, when I go to create my front-end grid for displaying directory results, I'm unable to limit the number of words/characters that are output from the (bio/intro) custom field. I'd like these blocks to only show ~20 words, just to keep the grid clean. Basically, I'd like to control this custom field's output similar to the way we can configure the standard WordPress excerpt. Is there a way to do that? If not, is there a way for me to use the standard WordPress content field without the user seeing/accessing all the styling options?
Please note, how I've used the Toolset Type fields shortcode to show the content from a "post-text-area" field, inside the new custom shortcode ( [types field='post-text-area'][/types] ) and set the limit of words to 40 and the more text that is appended at the end to '....'.
Note: The custom code examples from our forum are shared to get you started in the right direction. You're welcome to adjust them as needed and for more personalized customization assistance, you can consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/