<?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: WordPress: If ($the_content) exists</title>
	<atom:link href="http://www.doc4design.com/articles/if-content-exists/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doc4design.com/articles/if-content-exists/</link>
	<description>Advertising and Marketing agency located in Northwest Arkansas providing easily attainable, creative solutions for any outlet in any stage of growth.</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:25:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-1117</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Fri, 15 Apr 2011 19:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-1117</guid>
		<description>Alan, 

Because $the_content is a reserved tag specific to WordPress. Think of it this way, WordPress has pre-determined what should be happening when we use this tag and this not one of the ways which we are allowed to use it.</description>
		<content:encoded><![CDATA[<p>Alan, </p>
<p>Because $the_content is a reserved tag specific to WordPress. Think of it this way, WordPress has pre-determined what should be happening when we use this tag and this not one of the ways which we are allowed to use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-1116</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Fri, 15 Apr 2011 18:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-1116</guid>
		<description>Why is it that just using $the_content in the &quot;if&quot; requirement part will not work?</description>
		<content:encoded><![CDATA[<p>Why is it that just using $the_content in the “if” requirement part will not work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sasi</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-1080</link>
		<dc:creator>Sasi</dc:creator>
		<pubDate>Thu, 17 Feb 2011 21:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-1080</guid>
		<description>There is a tag that returns the string for the_content()
It&#039;s called: get_the_content()
---
http://wordpress.org/support/topic/if-content-exists
---

I myself do an if (empty($var)) check on it. That&#039;s all.</description>
		<content:encoded><![CDATA[<p>There is a tag that returns the string for the_content()<br />
It’s called: get_the_content()<br />
—<br />
<a href="http://wordpress.org/support/topic/if-content-exists" rel="nofollow">http://wordpress.org/support/topic/if-content-exists</a><br />
—</p>
<p>I myself do an if (empty($var)) check on it. That’s all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-930</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 08 Dec 2010 18:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-930</guid>
		<description>Ahhh, thank you very much. A little tip though, for front end developers like myself, it can become a huge burden dealing with code written inside out like that, with html inside of the php. I know a lot of programmers for whatever reason prefer to do it that way, but it seriously cripples a designers ability to shape the php generated raw data into an actual website.</description>
		<content:encoded><![CDATA[<p>Ahhh, thank you very much. A little tip though, for front end developers like myself, it can become a huge burden dealing with code written inside out like that, with html inside of the php. I know a lot of programmers for whatever reason prefer to do it that way, but it seriously cripples a designers ability to shape the php generated raw data into an actual website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-900</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Thu, 04 Nov 2010 16:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-900</guid>
		<description>Bjarne, 

Glad I could help, can you reprint the changes you made for others to see? Thank you.

Please be sure and wrap any code within the &quot;code&quot; tags for it to display properly in the comments.</description>
		<content:encoded><![CDATA[<p>Bjarne, </p>
<p>Glad I could help, can you reprint the changes you made for others to see? Thank you.</p>
<p>Please be sure and wrap any code within the “code” tags for it to display properly in the comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjarne Christensen</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-899</link>
		<dc:creator>Bjarne Christensen</dc:creator>
		<pubDate>Thu, 04 Nov 2010 16:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-899</guid>
		<description>Just wanted to say thanks... This piece of code is very useful.

I edited it a bit;

post_content ) { ?&gt;

	
		
		
	
	
	
		
	
	

</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks… This piece of code is very useful.</p>
<p>I edited it a bit;</p>
<p>post_content ) { ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martha</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-222</link>
		<dc:creator>Martha</dc:creator>
		<pubDate>Sat, 14 Nov 2009 02:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-222</guid>
		<description>heh. never mind. It&#039;s late and my brain is failing. Your code is 100% perfect. I don&#039;t know why I thought I had to change that line --  it didn&#039;t make sense when I did it and then I didn&#039;t really believe it when it worked. And, sure enough, my &quot;fix&quot; was actually breaking it. 

In any case, thanks!!</description>
		<content:encoded><![CDATA[<p>heh. never mind. It’s late and my brain is failing. Your code is 100% perfect. I don’t know why I thought I had to change that line —  it didn’t make sense when I did it and then I didn’t really believe it when it worked. And, sure enough, my “fix” was actually breaking it. </p>
<p>In any case, thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martha</title>
		<link>http://www.doc4design.com/articles/if-content-exists/comment-page-1/#comment-221</link>
		<dc:creator>Martha</dc:creator>
		<pubDate>Sat, 14 Nov 2009 02:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=714#comment-221</guid>
		<description>Thank you! I&#039;ve been searching for the easiest way to test for empty post content. Figured there would be some kind of built-in conditional tag, but as you pointed out, no such luck. 

I did have to make one change to your code though.  In that first line I had to change the single equals sign to a double. Before that the statement wasn&#039;t working; after that I seem to be on my way to success.</description>
		<content:encoded><![CDATA[<p>Thank you! I’ve been searching for the easiest way to test for empty post content. Figured there would be some kind of built-in conditional tag, but as you pointed out, no such luck. </p>
<p>I did have to make one change to your code though.  In that first line I had to change the single equals sign to a double. Before that the statement wasn’t working; after that I seem to be on my way to success.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

