Elliott C. Back: Technology FTW!

Truncate Title: For Perogy

Posted in Code, My Blog, Plugins by Elliott Back on December 12th, 2004.

This plugin is for Perogy. Today she posted this interesting article, with a title slug so long you could use it to paint your walls. In fact, the title was so long that Wordpress truncated it to 200 characters!

So, I’ve written this plugin to truncate titles to a certain length–in my case, a maximum of 45 characters. What does this mean? Even mom can post on the blog, and not screw up the layout. On a technical note, it breaks titles by word and pieces them back together until they have reached the word limit, so you won’t get cut off in the middle of a great piece of vocabulary.

Feel free to download Truncate Title. It’s tiny.

This entry was posted on Sunday, December 12th, 2004 at 3:56 am and is tagged with even mom, word limit, slug, vocabulary, blog. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Viewing 5 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus