| @@ -944,9 +944,9 @@ | ||
| 944 | 944 | // Get recent posts for blog homepage |
| 945 | 945 | $recent_posts = get_posts(['numberposts' => 3]); |
| 946 | 946 | $content_parts = []; |
| 947 | 947 | foreach ($recent_posts as $post) { |
| 948 | - $content_parts[] = $post->post_title . ' ' . wp_trim_words($post->post_content, 100); | |
| 948 | + $content_parts[] = $post->post_title . ' ' . \ThinkRank\Core\Seo_Text::trim_words($post->post_content, 100, '...', 1000); | |
| 949 | 949 | } |
| 950 | 950 | $content = implode(' ', $content_parts); |
| 951 | 951 | } |
| 952 | 952 | break; |