<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Design Code Interactive &#187; Blog</title>
	<atom:link href="http://www.dc-interactive.net/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dc-interactive.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 20 Feb 2009 07:27:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problem in get_category_link() in WordPress 2.7</title>
		<link>http://www.dc-interactive.net/blog/problem-in-get_category_link-in-wordpress-27.html</link>
		<comments>http://www.dc-interactive.net/blog/problem-in-get_category_link-in-wordpress-27.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 11:59:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.dc-interactive.net/?p=34</guid>
		<description><![CDATA[When I upgraded to WordPress 2.7 I started getting the following error wherever I used the get_the_category() function in my WordPress themes.
Catchable fatal error:  Object of class WP_Error could not be converted to string in /home/dcing/public_html/wp-content/themes/dcing/category.php on line 52
I thought I would be a common bug, and I can easily find a solution on [...]]]></description>
			<content:encoded><![CDATA[<p>When I upgraded to WordPress 2.7 I started getting the following error wherever I used the get_the_category() function in my WordPress themes.</p>
<blockquote><p><strong>Catchable fatal error</strong>:  Object of class WP_Error could not be converted to string in <strong>/home/dcing/public_html/wp-content/themes/dcing/category.php</strong> on line <strong>52</strong></p></blockquote>
<p>I thought I would be a common bug, and I can easily find a solution on Internet so I tried search. But I was not able to find a fix for that problem. So I self debugged the code and managed to sort out a solution. Here are the steps to fix the problem.</p>
<ol>
<li>Open <strong>wp-includes/category-template.php</strong></li>
<li>Search for “<strong>function get_category_link( $category_id ) {</strong>“</li>
<li>Now inside that function, search the following lines<br />
<strong>if ( is_wp_error( $category ) )<br />
return $category;</strong></li>
<li>Replace the above 2 lines with following code<br />
<strong>//if ( is_wp_error( $category ) )<br />
//return $category;</strong></li>
</ol>
<p>That should solve the problem. Enjoy WordPressing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dc-interactive.net/blog/problem-in-get_category_link-in-wordpress-27.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
