ワードプレス カスタム functions.php 概要 文字抜粋
// 概要(抜粋)の文字数
function my_length($length) {
return 77;
}
add_filter('excerpt_mblength','my_length');
// 概要(抜粋)の記号
function my_mory($more) {
return '...';
}
add_filter('excerpt_more','my_more');
// 概要(抜粋)の文字数
function my_length($length) {
return 77;
}
add_filter('excerpt_mblength','my_length');
// 概要(抜粋)の記号
function my_mory($more) {
return '...';
}
add_filter('excerpt_more','my_more');