<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Limit Characters on Wordpress Titles</title>
	<atom:link href="http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/feed/" rel="self" type="application/rss+xml" />
	<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/</link>
	<description>musings of Justin Shattuck</description>
	<lastBuildDate>Tue, 02 Mar 2010 11:46:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Phil</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-185913</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Fri, 26 Feb 2010 00:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-185913</guid>
		<description>Great code...

I added an additional feature to truncate partial words that may be cut off when you trim the title by modifying the first if statement.

if ( $length &amp;&amp; is_numeric($length) &amp;&amp; strlen($title) &gt;= $length) {
	$title = substr( $title, 0, $length ); // Trim title to 40 characters
	$lastSpace = strrpos($title, &#039; &#039;); // Locate the last space in the title
	$title = substr($title, 0, $lastSpace); // Trim the portion of the last word off
	}</description>
		<content:encoded><![CDATA[<p>Great code&#8230;</p>
<p>I added an additional feature to truncate partial words that may be cut off when you trim the title by modifying the first if statement.</p>
<p>if ( $length &amp;&amp; is_numeric($length) &amp;&amp; strlen($title) &gt;= $length) {<br />
	$title = substr( $title, 0, $length ); // Trim title to 40 characters<br />
	$lastSpace = strrpos($title, &#8216; &#8216;); // Locate the last space in the title<br />
	$title = substr($title, 0, $lastSpace); // Trim the portion of the last word off<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khaled Hakim</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-185747</link>
		<dc:creator>Khaled Hakim</dc:creator>
		<pubDate>Tue, 23 Feb 2010 10:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-185747</guid>
		<description>I just wanted to point out that I implemented your short titles code and I&#039;m more than happy to say that it worked like a charm without any hassles. Concise and sharp way of presenting the information... keep it up... and keep these nice little posts coming :)</description>
		<content:encoded><![CDATA[<p>I just wanted to point out that I implemented your short titles code and I&#8217;m more than happy to say that it worked like a charm without any hassles. Concise and sharp way of presenting the information&#8230; keep it up&#8230; and keep these nice little posts coming :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomek</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-182714</link>
		<dc:creator>tomek</dc:creator>
		<pubDate>Sun, 17 Jan 2010 15:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-182714</guid>
		<description>Script is working fine, but some of local PL characters are scrambled, for example: ????ó - appear as question mark.</description>
		<content:encoded><![CDATA[<p>Script is working fine, but some of local PL characters are scrambled, for example: ????ó &#8211; appear as question mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolas</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-182056</link>
		<dc:creator>Nikolas</dc:creator>
		<pubDate>Fri, 08 Jan 2010 12:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-182056</guid>
		<description>Hello. I am using Greek letters and I get a question mark in the end of the title. How can I avoid this ?
Thank you</description>
		<content:encoded><![CDATA[<p>Hello. I am using Greek letters and I get a question mark in the end of the title. How can I avoid this ?<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vendo</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-168295</link>
		<dc:creator>vendo</dc:creator>
		<pubDate>Sun, 26 Jul 2009 11:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-168295</guid>
		<description>Greeting from Slovakia. Nice script. Working. Thanks</description>
		<content:encoded><![CDATA[<p>Greeting from Slovakia. Nice script. Working. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-164942</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Fri, 19 Jun 2009 15:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-164942</guid>
		<description>Hi, Nice script thanks! But I also want to do this with the content but it didn&#039;t worked :( Can you help?</description>
		<content:encoded><![CDATA[<p>Hi, Nice script thanks! But I also want to do this with the content but it didn&#8217;t worked :( Can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis Quinnelly</title>
		<link>http://old.justinshattuck.com/2009/03/31/limit-characters-on-wordpress-titles/comment-page-1/#comment-155835</link>
		<dc:creator>Travis Quinnelly</dc:creator>
		<pubDate>Tue, 31 Mar 2009 19:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinshattuck.com/?p=317#comment-155835</guid>
		<description>Nice job fella.</description>
		<content:encoded><![CDATA[<p>Nice job fella.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
