Changing Posts To Articles In The WordPress Dashboard
The WordPress user dashboard is simple to customize and many WordPress web designers seek to offer a custom dashboard for their clients. In regards to a possible client’s website which may offer articles in a news format or style, the title “Articles” opposed to “Posts” would be much more suitable and less confusing inside the WordPress dashboard for this client.
- Included is a simple PHP snippet which will change the words “Posts” and “All Posts” to “Articles” and “All Articles” (as shown in the image).
Copy and paste the snippet below into your functions.php file
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; }
That code was very helpful and easy to implement– and it worked! Thanks a lot!