post_content ); if ( str_word_count( $content, 0 ) > $word_count ) { $words = str_word_count( $content, 2 ); $keys = array_keys( $words ); $excerpt = substr( $content, 0, $keys[ $word_count ] ); $link_class = ' class=\"btn btn-secondary understrap-read-more-link\"'; $excerpt = '
' . $excerpt . '[...]
'; $excerpt .= ''; } else { return $content; } return $excerpt; }