Hi there,
I am trying to figure out a way to create an excerpt from a "biography" for a personal profile.
I currently have a textarea field (since styling a WYSIWYG field on the front-end is very complicated) for the biography.
Ideally I would like to go the simple route of pulling that value into another custom field, Excerpt, where it's a textarea field again, but read only and limited in word limit. I have the limit plugin, so that's a non-issue. I'm just trying to figure out how to populate another field in real time, or does it genuinely require saving the data and needing a hook after the fact to limit the word count and save to the post excerpt?
I see this doc for a WYSIWYG 'solution' such that it will save that data to the WP content, therefore an excerpt can be generated off that. If that is the "best solution" to this problem, such that I can't copy field data live, then what would be the best course of action to replace the WYSIWYG components with a textarea instead? or will saving to the WP content remove the styling from the WYSIWYG input so that I can style it accordingly on the front end? The user doesn't need to add crazy elements to that, nor do I need to be concerned with different html tags throughout the content, it's basically a paragraph or two of text, nothing more really
https://docs.metabox.io/save-wysiwyg-content-post-content/