Our website, many of the titles in meta name="title" content="HUGE MOTHER TITLES HERE..." Have titles exceeding the 50-55 norm. How to trim the meta title result only? I do not want to trim anything in the front end, only the rendered shown in the view src.
Saw this example below, but can dig up the needed action, the attached action with the below example may have been too old. Likewise this trims the 'chars' to 5 words, however, we would prefer to set the total string amount to max50, and then add ellipsis (...) to keep it more realistic.
<meta name="title" content="<?php echo wp_trim_words( get_the_title(), 5 ); ?>" />
Been digging thru the ancient posts of yesteryear (2015) online... nothing but voodoo...
Thanks guys.