WordPress: Rename default label “Posts” to “News” OR something else

Wordpress Rename default label Posts

Sometime you may need to change the default label “Posts”  with your required word, like Portfolio, Articles, News, etc. WordPress is a very powerful CMS that gives you the ability to play with it.

Rename default label “Posts” – In Admin Left Menu

Here, I am using wordpress hook (add_action) to change “Posts” to “News”. Add these functions in your current theme’s functions.php file.

With above function you will see only left menu labels are changed.


Wordpress Rename default label Posts

Rename default label “Posts” Object

To change Post object labels you need to update $wp_post_types object and that function should be call on init. i.e.

If you use only above function, You will see the it changed new lable “News” but “Tags” is still single word.

Wordpress Rename default label Posts
WordPress Rename default label Posts

To make changes on both please use both functions. Here is the fully snippet for WordPress: Rename the default label “Posts” to “News” OR something else…

Source: My GitHub Account

When you use both functions you will see that your “Posts” label has been changed to “News” like:

Wordpress Rename default label Posts
WordPress Rename default label Posts

Leave a Reply