WordPress […] を消す

WordPress […] を消す

▼functions.phpに以下のコードを追加

【出力】冒頭文

function new_excerpt_more($more) {
 return '';
}
add_filter('excerpt_more', 'new_excerpt_more');

 

【2行目】「’」シングルクォーテーションの間に任意の文字を書くこともでける。

【出力】冒頭文…続きを読む

function new_excerpt_more($more) {
 return '…続きを読む';
}
add_filter('excerpt_more', 'new_excerpt_more');