カテゴリページのタイトルから "カテゴリ:"の表示を削除する覚書
/** カテゴリページのタイトルから "カテゴリ:"の表示を削除する */ function change_archive_title( $title ) { if ( is_category() ) { /* カテゴリーアーカイブ */ $title = single_cat_title( '', false ); } elseif ( is_tag() ) { /* タグアーカイブ */ $title = single_tag_title( '', false ); } elseif ( is_tax() ) { /* タームアーカイブ */ $title = single_term_title( '', false ); } elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); /* 投稿タイプアーカイブ */ } return $title; }; add_filter( 'get_the_archive_title', 'change_archive_title' );