日本語の抜粋表示ができない(海外テーマ使用)
解決法
WordPress フォーラム
日本語の抜粋表示ができない(海外テーマ使用)
function.phpを見ると確かに
function ds_get_excerpt($num_chars) {
$temp_str = substr(strip_tags(get_the_content()),0,$num_chars);
$temp_parts = explode(" ",$temp_str);
$temp_parts[(count($temp_parts) - 1)] = '';
if(strlen(strip_tags(get_the_content())) > 125)
return implode(" ",$temp_parts) . '...';
else
return implode(" ",$temp_parts);
}
となっている。
tl-blog.phpの
echo ds_get_excerpt($num_chars);
を、
the_excerpt();
に
変更。
日本語の文字数がうまく数えられないんじゃね?