記事の長さを調整するために、functions.php ファイルに次のスクリプトを追加することで簡単にできます。
<?
// 30半角文字まで
add_filter(‘excerpt_length’, ‘my_excerpt_length’);
function my_excerpt_length($length) {
return 30; // Or whatever you want the length to be.
}
?>
記事の長さを調整するために、functions.php ファイルに次のスクリプトを追加することで簡単にできます。
<?
// 30半角文字まで
add_filter(‘excerpt_length’, ‘my_excerpt_length’);
function my_excerpt_length($length) {
return 30; // Or whatever you want the length to be.
}
?>