July 29th, 2010

More WordPress Capitalization

Filed under: geek,webdev — saul @ 2:55 AM

If you read THIS article (and possibly used the provided code) you may have found yourself in the same situation I was in tonight - a client WP site with 300 posts each with the titles typed in all caps (what can I say?, THEY, LIKE TO SHOUT) and a handful of pages with titles that included words that actually should be capitalized, we didn’t have an opportunity to discuss as to exactly what kind of words needed to be capitalized - but it turned out that I could just avoid the issue entirely by specifying out capitalization function explicitly - as opposed to filtering all requests for the_title(). So kill off the filter for friendlycae.

Like so (from the template)
friendlycase(get_the_title());

Reality Check

I’m pretty sure at some point in the near future all those capitalize titles will come back to cause pain, but for now (and for launch) this seems to be adequate, but I know it’s only a matter of time.

No Comments »

No comments yet.

Leave a comment

Comments will be sent to the moderation queue.