文字抜粋テンプレートタグを使おうとしてexcerpt_mblengthが使えない問題
文字表示抜粋を変えようとして
function the_short_excerpt() {
add_filter('excerpt_mblength', 'short_excerpt_length', 11);
the_excerpt();
remove_filter('excerpt_mblength', 'short_excerpt_length', 11);
}
function short_excerpt_length() {
return 30;
}
こんなのを書いたが、excerpt_mblengthが使えない。
WP Multibyte プラグインを入れてないのが問題でした。日本語の抜粋分に反応してなかった模様。