How to change the page title of an archive in WordPress

17th December 2012

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' );

Last updated by at .

Got An Opinion On This Article?

Share your comments with us...


*