Conversation
supporthi, how do i get this to work? <?php echo mb_strimwidth( the_subtitle(), 0, 20, ‘…’ ); ?> this works with the regular title: <?php echo mb_strimwidth( get_the_title(), 0, 20, ‘…’ ); ?> “get_the_title()” in that code above doesn’t return anything… want the subtitles to be trimmed after a certain number of characters so long subtitles would trail off with “…” This topic was modified 7 years ago by sank .
Use the_subtitle( ‘’, ‘’, false ) The false parameter returns the subtitle instead of outputting it.
Use the_subtitle( ‘’, ‘’, false ) The false parameter returns the subtitle instead of outputting it.