Warning: The magic method Visual_Form_Builder::__wakeup() must have public visibility in /home/xsvx1010357/kato.space/public_html/wp/wp-content/plugins/visual-form-builder/visual-form-builder.php on line 68

Warning: The magic method Visual_Form_Builder_Form_Display::__wakeup() must have public visibility in /home/xsvx1010357/kato.space/public_html/wp/wp-content/plugins/visual-form-builder/public/class-form-display.php on line 35
the_excerpt(); が効かないので自分で関数を作る – 加藤電業社

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