functions.php
wp_list_categories() によるa title=” に含まれる投稿をすべて表示”」の非表示
<?php
add_filter('wp_list_categories', 'remove_category_link_prefix');
function remove_category_link_prefix($output) {
return str_replace(' に含まれる投稿をすべて表示', '', $output);
}
?>
the_category() によるa title=” の投稿をすべて表示”」の非表示
<?php
add_filter('the_category', 'remove_the_category_link_prefix');
function remove_the_category_link_prefix($output) {
return str_replace(' の投稿をすべて表示', '', $output);
}
?>
コメント