chinese-wp-excerpt-fixWordPress excerpt works fine in most languages character, however if its on Chinese pin yin language, the excerpt will not work. The excerpt count cannot filter the character because of ‘no spacing’ in Chinese character. You can use the following fix for Chinese language:

Add this code into your functions.php

function dez_filter_chinese_excerpt( $output ) {
global $post;
//check if its chinese character input
$chinese_output = preg_match_all("/\p{Han}+/u", $post->post_content, $matches);
if($chinese_output) {
$output = mb_substr( $output, 0, 50 ) . '...';
}
return $output;
}
add_filter( 'get_the_excerpt', 'dez_filter_chinese_excerpt' );

You can edit the ’50’ to any number you preferred.

Related Tagged Posts:

Why WordPress is the Best Platform for your Business Website
Why WordPress is the Best Platform for your Business Website
WordPress Continues to Be the Best Performing CMS For SEO Results
WordPress Continues to Be the Best Performing CMS For SEO Results
How WordPress Websites Can Be Made Future-Proof
How WordPress Websites Can Be Made Future-Proof
Deal with the Errors on WordPress!
Deal with the Errors on WordPress!