How to change the page title of an archive in WordPress

If you want to change the default page title of an archive in WordPress, all you need to do is add this simple little piece of code to your functions.php file…

function change_archive_object_label() {
	global $wp_post_types;
	$labels = &$wp_post_types['post']->labels;
	$labels->name = 'NEW TITLE HERE';
}
add_action( 'init', 'change_archive_object_label' );
Free Graphics, Icons, Tutorials
Free Graphics Free Weather Icons PSDFree Debit / Credit Card PSD GraphicFree Drinks PSD GraphicsFree Shopping Icons PSDFree Camera PSD GraphicFree Flat Office Icon Pack 2
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358