Change ‘Posts’ to ‘News’

WordPress Code Snippet

Sometimes it useful to change the word ‘Posts’ in the admin area to make it easier for your client to identify what sort of content they are adding. Whilst ‘Posts’ makes perfect sense to anyone who has used WordPress for a long time, it can be changed to make it more user friendly.

The following snippet needs to go into you themes functions.php file somewhere between the opening and closing php tags. You can also put this into a plugin so that it isn’t theme dependant

function change_post_menu_label() {
global $menu;
global $submenu;
$menu[5][0] = 'News';
$submenu['edit.php'][5][0] = 'All news';
$submenu['edit.php'][10][0] = 'Add news item';
echo '';
}
add_action( 'admin_menu', 'change_post_menu_label' );

The above example changes posts to ‘News’ and you can of course change the name you want to use from ‘News’ to ‘Blog’ or anything else.