为什么要删除,因为我想定制自己,如果要的话SEO,你可能需要处理好标题
有两种方式
方法1,删除后自己写一个functions来实现title显示,然后在模板中调用
//删除wp_head()中的title标签remove_action( wp_head, \_wp_render_title_tag, 1 );
后面步骤…自定义标签函数…自己写,想怎么写怎么写,然后调用主题中的函数
方法2,直接重写
add_filter( get_the_archive_title, function ($title) {if ( is_category() ) { $title = single_cat_title( \, false ); } elseif ( is_tag() ) { $title = single_tag_title( \, false ); } elseif ( is_author() ) { $title = \ . get_the_author() . \ ; }return $title;});