<?php/** * Remove label from archive indexes such as Category or Tag etc. * https://developer.wordpress.org/reference/functions/get_the_archive_title/ */functionjd_twentytwentythree_archive_title($title){if(is_category()){$title=single_cat_title('',false);}elseif(is_tag()){$title=single_tag_title('',false);}elseif(is_author()){$title='<span class="vcard">'.get_the_author().'</span>';}elseif(is_post_type_archive()){$title=post_type_archive_title('',false);}elseif(is_tax()){$title=single_term_title('',false);}return$title;}add_filter('get_the_archive_title','jd_twentytwentythree_archive_title');
/*Theme Name: JD Twenty Twenty Three ChildDescription: Twenty Twenty Three Child ThemeAuthor: Joseph DicksonAuthor URI: https://joseph-dickson.comTemplate: twentytwentythreeVersion: 1.0.0License: GNU General Public License v2 or laterLicense URI: http://www.gnu.org/licenses/gpl-2.0.htmlText Domain: twentytwentythree*/