the_excerpt(); が効かないので自分で関数を作る

the_excerpt();
うごかないので、

add_filter('the_excerpt', 'my_the_excerpt');
function my_the_excerpt($postContent) {
    $postContent = mb_strimwidth($postContent, 0, 70, "…","UTF-8");
    return $postContent;
}

@See http://www.cloudot.co.jp/blog/1963/

 

 

投稿者 kato

これはテスト画像ですよ。テストです。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA