Ronald Huereca is part developer, part mammal. And he only comes out at night. View the author's website.
 

WP Title Case Review

Via Shawn, I came across a neat plugin called Title Case for WordPress.

Basically the plugin converts all headings and titles into appropriate title case.

Before: This is a cool plugin.
After: This is a Cool Plugin.

This plugin is a necessity for multi-author blogs, where various authors have different capitalization schemes.

I applied the plugin here and immediately noticed the difference.

Title Case - Before

Title Case - Before

I highlighted the areas in red that weren’t in title case.

Title Case - After

After applying the plugin, you can see the difference.

title-case-after.jpg

Custom Function

Currently the plugin uses a WordPress filter called ‘the_title’. However, it is my experience that not everybody uses this for all areas of their site.

Here is a function you could put into your theme’s functions.php, which you can call if you need to put something into title case that doesn’t involve invoking the template tag the_title.


function title_case($string = '') {
	if (function_exists('nv_title_case')) {
		return nv_title_case($string);
	}
	return $string;
}

The function assumes you have the WP Title Case plugin installed.

Conclusion

WP Title Case is a fantastic and simple plugin that converts normal text into title case. It is ideal for multi-author blogs where authors have various capitalization schemes.

Read the Discussion (4 Responses)

  • RT Cunningham says...

    http://www.untwistedvortex.com/

    I don’t have a problem with uppercase, but I do with lower case. In specific, capitalized categories when used as tags are still capitalized. Sometimes, as in using a proper name, it’s needed and other times it’s a pain. In my case, a plugin that would let me selectively use lower case tags would be better.

  • Simonne says...

    http://www.alltipsandtricks.com

    Yes, I see this plugin very useful for multi author blogs, especially when the authors have different habits regarding writing the titles.

  • Post Author

    Ronald Huereca says...

    http://www.ronalfy.com

    @RT,

    You could use CSS to lowercase them. Would that work?

  • RT Cunningham says...

    http://emailjokes.ouc1.com/

    I didn’t think of that. I’ll check it out.

Join the Discussion