<?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: Different &#8220;Read More&#8221; Link For Different Categories</title>
	<atom:link href="http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/</link>
	<description>Wordpress tutorials, articles, hacks, tricks and many more</description>
	<lastBuildDate>Fri, 29 Apr 2011 23:36:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jorge Ledesma</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-5079</link>
		<dc:creator>Jorge Ledesma</dc:creator>
		<pubDate>Thu, 04 Nov 2010 06:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-5079</guid>
		<description>Great post but I&#039;m confused, can&#039;t figure out where to change the one of my categories to the example above, can  you give another example please ie. cat id 28.

thanks</description>
		<content:encoded><![CDATA[<p>Great post but I&#8217;m confused, can&#8217;t figure out where to change the one of my categories to the example above, can  you give another example please ie. cat id 28.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nimit Kashyap</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-268</link>
		<dc:creator>Nimit Kashyap</dc:creator>
		<pubDate>Fri, 12 Mar 2010 06:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-268</guid>
		<description>very useful post indeed</description>
		<content:encoded><![CDATA[<p>very useful post indeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boba</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-244</link>
		<dc:creator>Boba</dc:creator>
		<pubDate>Wed, 10 Mar 2010 14:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-244</guid>
		<description>get_the_title() and get_permalink() are same as the_title() and the_permalink() except one uses return and the other uses echo. Inside of a theme the ones that echo are used, not the ones that return. Those that return are for specific cases as in this one where i need to get and not echo the value.</description>
		<content:encoded><![CDATA[<p>get_the_title() and get_permalink() are same as the_title() and the_permalink() except one uses return and the other uses echo. Inside of a theme the ones that echo are used, not the ones that return. Those that return are for specific cases as in this one where i need to get and not echo the value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OIS</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-243</link>
		<dc:creator>OIS</dc:creator>
		<pubDate>Wed, 10 Mar 2010 13:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-243</guid>
		<description>I usually downvote first, then come back to see if the article is changed or they have a good argument to convince me their way is good/better.

2) You should not assume how the output will be used. With this function you have to use output buffer to capture it if you want to use it for something else. 
You see the functions get_the_title() and get_permalink() return a string and can be used in string concatenation. Its better to be consistent.</description>
		<content:encoded><![CDATA[<p>I usually downvote first, then come back to see if the article is changed or they have a good argument to convince me their way is good/better.</p>
<p>2) You should not assume how the output will be used. With this function you have to use output buffer to capture it if you want to use it for something else.<br />
You see the functions get_the_title() and get_permalink() return a string and can be used in string concatenation. Its better to be consistent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boba</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-241</link>
		<dc:creator>Boba</dc:creator>
		<pubDate>Wed, 10 Mar 2010 10:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-241</guid>
		<description>@OIS - After you write a comment think about it before you hit the submit button. That way you won&#039;t make 3 comments in 20 seconds. I&#039;ll make them into one but in future take it slowly :)
 
1) Interesting.
2) Well for this specific wordpress function i think echo is the way to go.

P.S. Thanks for the downvote. </description>
		<content:encoded><![CDATA[<p>@OIS &#8211; After you write a comment think about it before you hit the submit button. That way you won&#8217;t make 3 comments in 20 seconds. I&#8217;ll make them into one but in future take it slowly <img src='http://wpcanyon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1) Interesting.<br />
2) Well for this specific wordpress function i think echo is the way to go.</p>
<p>P.S. Thanks for the downvote.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OIS</title>
		<link>http://wpcanyon.com/tipsandtricks/different-read-more-link-for-different-categories/comment-page-1/#comment-238</link>
		<dc:creator>OIS</dc:creator>
		<pubDate>Wed, 10 Mar 2010 10:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=194#comment-238</guid>
		<description>For simple lookups you use an array not a switch.

static $text = array(
&#039;default&#039; =&gt; &#039;Continue Reading&#039;, 
1 =&gt; &#039;Continue reading this tutorial&#039;, 
2 =&gt; &#039;Watch screencast&#039;,
);
if (!isset($text[$categoryID])) {
$categoryID = &#039;default&#039;;
}
$readMoreText =  $array[$categoryID];

Secondly, it should return a string so you dont have to use output buffer to capture it. Its a good practice for the future. 

function readMore()
{
//do stuff

return $readMore;
}

echo readMore();</description>
		<content:encoded><![CDATA[<p>For simple lookups you use an array not a switch.</p>
<p>static $text = array(<br />
&#8216;default&#8217; =&gt; &#8216;Continue Reading&#8217;,<br />
1 =&gt; &#8216;Continue reading this tutorial&#8217;,<br />
2 =&gt; &#8216;Watch screencast&#8217;,<br />
);<br />
if (!isset($text[$categoryID])) {<br />
$categoryID = &#8216;default&#8217;;<br />
}<br />
$readMoreText =  $array[$categoryID];</p>
<p>Secondly, it should return a string so you dont have to use output buffer to capture it. Its a good practice for the future. </p>
<p>function readMore()<br />
{<br />
//do stuff</p>
<p>return $readMore;<br />
}</p>
<p>echo readMore();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

