To transform the post title into different style, for example uppercase, you don’t need to use any plugin. In this article I will show you how to do it simply by using WordPress filter.
What we are going to do is to add a filter hook, so that the title of a post will go through this before displaying to the user.
Add in your functions.php:
add_filter('the_title', 'uppercase_title');
function uppercase_title ($title) {
// do the transformation only in single post page
if ( is_single() && 'post' == get_post_type() ) $title = strtoupper($title);
return $title;
}
This line can also be changed for other different transformation.
$title = strtoupper($title);
// ALL UPPERCASE
$title = strtolower($title);
// all lowercase
$title = ucfirst(strtolower($title));
// First letter uppercase
$title = ucwords(strtolower($title));