Snippets

Change “posts” label to “articles”.

Paste in functions.php

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 );  // ireplace is PHP5 only
     return $translated;
}

Source: http://wp.smashingmagazine.com/2011/05/10/new-wordpress-powe...

Share this snippet

 

Comments (3) - Leave yours

  1. RobsLegacy said:

    Is there a way to get this to change the “New+ > Post” text as well? Also on the actual screen it says “Posts” still. I would love if there was a code this short that a ‘do it all’ type.

  2. Jonas said:

    Ahh! That’s pretty neat. I’m not handy with codings myself, but would this work using ‘change_post_to_tutorial’ instead of ‘change_post_to_article’? I got a tutorial website, so I figure that would suit it well :)

Leave a Reply

Your email address will not be published. Required fields are marked *

Please respect the following rules: No advertising, no spam, no keyword in name field. Thank you!