How to change the “posts” label to “articles”

April 16, 2012 at 4:59 pm

Are you working for clients which aren’t very good with technology? If yes, most of them might find the term “post” a bit confusing, while “article” can be seen as much self-explanatory. Today, I’m going to show you how you can easily change the “post” label to “articles”.

Nothing complicated: Open your functions.php file, paste the code below in it. Save the file, and you’re done!

add_filter('gettext',  'change_post_to_article');
add_filter('ngettext',  'change_post_to_article');

function change_post_to_article($translated) {
     $translated = str_ireplace('Post',  'Article',  $translated);  
     return $translated;

Thanks to Smashing Magazine for the cool tip!