diff --git a/wp-content/themes/score/lib/admin/inc/theme-widgets.php b/wp-content/themes/score/lib/admin/inc/theme-widgets.php index 795574e..85cb495 100644 --- a/wp-content/themes/score/lib/admin/inc/theme-widgets.php +++ b/wp-content/themes/score/lib/admin/inc/theme-widgets.php @@ -111,9 +111,13 @@ class SidebarPosts extends WP_Widget { $artist = get_post_meta($post->ID, 'ghostpool_dedication_artist', true); $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true); $artist_song = $artist . '. ' . $song; - ?> + $artist_song_span = ''.$artist.''.'. '.$song; + $new_name = $this->string_limit_words($artist_song_span, 6); + if ($new_name != $artist_song_span) + $new_name .= '...'; + ?> - +