<?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: How to Display Properly Formatted Content From a $post Object in WordPress</title>
	<atom:link href="http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 12:35:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2417</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 06 Jul 2010 23:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2417</guid>
		<description>Oops. Some single quotes got stripped... oh well.</description>
		<content:encoded><![CDATA[<p>Oops. Some single quotes got stripped&#8230; oh well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2416</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 06 Jul 2010 23:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2416</guid>
		<description>Peter,

Thanks so much! I&#039;m just learning to integrate WP blogs tightly into a site, and will perhaps use it as a CMS although I&#039;m just about to learn that part. I want full-on control of what I code. 

Anyway, I normally would write like this:

echo &#039;&#039; . the_content.&#039;&#039; . &quot;\n&quot; 

but then found the the_content() function was  already echoing the content, and thus, I&#039;d get doubles. I was frustrated that I was going to have to change my writing/coding style to accommodate the &quot;poorly&quot; written wp functions (I almost think a function should NEVER echo unless the developer tells it to, via, um, echo). 

But I have found that you (and wp) are both smarter than me, as they allow quick outputting of stuff, or accessing the post object with a filter. VERY cool and exactly the fix I was looking for. Thank you!!!</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Thanks so much! I&#8217;m just learning to integrate WP blogs tightly into a site, and will perhaps use it as a CMS although I&#8217;m just about to learn that part. I want full-on control of what I code. </p>
<p>Anyway, I normally would write like this:</p>
<p>echo &#8221; . the_content.&#8221; . &#8220;\n&#8221; </p>
<p>but then found the the_content() function was  already echoing the content, and thus, I&#8217;d get doubles. I was frustrated that I was going to have to change my writing/coding style to accommodate the &#8220;poorly&#8221; written wp functions (I almost think a function should NEVER echo unless the developer tells it to, via, um, echo). </p>
<p>But I have found that you (and wp) are both smarter than me, as they allow quick outputting of stuff, or accessing the post object with a filter. VERY cool and exactly the fix I was looking for. Thank you!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus L</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2413</link>
		<dc:creator>Magnus L</dc:creator>
		<pubDate>Mon, 14 Jun 2010 11:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2413</guid>
		<description>Thanks a lot!

I also had a problem getting &quot;List category posts&quot; output filtered/formatted output on my front page.</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
<p>I also had a problem getting &#8220;List category posts&#8221; output filtered/formatted output on my front page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sade</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2399</link>
		<dc:creator>Sade</dc:creator>
		<pubDate>Thu, 13 May 2010 03:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2399</guid>
		<description>it worked!!!! :) Thanks a million!</description>
		<content:encoded><![CDATA[<p>it worked!!!! <img src='http://apartmentonesix.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks a million!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2397</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 07 May 2010 21:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2397</guid>
		<description>Sade, have you tried this:
&lt;code&gt;
if($atts[&#039;content&#039;] == &#039;yes&#039; &amp;&amp; $single-&gt;post_content){
    $output .= apply_filters(&#039;the_content&#039;, $single-&gt;post_content);
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sade, have you tried this:<br />
<code><br />
if($atts['content'] == 'yes' &#038;&#038; $single->post_content){<br />
    $output .= apply_filters('the_content', $single->post_content);<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sade</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-2396</link>
		<dc:creator>Sade</dc:creator>
		<pubDate>Fri, 07 May 2010 21:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-2396</guid>
		<description>HELP!!!

How would I add the filters to this code. The following is from the Plugin List Category Posts. Its displaying the content but without line breaks. I want to add a filter and have tried everything. 


if($atts[&#039;content&#039;]==&#039;yes&#039; &amp;&amp; $single-&gt;post_content){
				$output .=&quot;$single-&gt;post_content&quot;;
			}

This is the specific web address http://easymoney4students.com/focus-groups/miami/ using the plugin. 

The page is set to display the following line. 

[catlist id=19 catlist content=yes numberposts=5]</description>
		<content:encoded><![CDATA[<p>HELP!!!</p>
<p>How would I add the filters to this code. The following is from the Plugin List Category Posts. Its displaying the content but without line breaks. I want to add a filter and have tried everything. </p>
<p>if($atts['content']==&#8217;yes&#8217; &amp;&amp; $single-&gt;post_content){<br />
				$output .=&#8221;$single-&gt;post_content&#8221;;<br />
			}</p>
<p>This is the specific web address <a href="http://easymoney4students.com/focus-groups/miami/" rel="nofollow">http://easymoney4students.com/focus-groups/miami/</a> using the plugin. </p>
<p>The page is set to display the following line. </p>
<p>[catlist id=19 catlist content=yes numberposts=5]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-946</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 23 May 2009 03:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-946</guid>
		<description>I&#039;ve always been a little fuzzy on how (and why) setup_postdata() works.  I&#039;ll have to look into it.  Either way, thanks for the tip.

And the tab order is fixed now - I had it set up for all you dyslexic tabbers out there, who like tab to work exactly the opposite of how they expected - but I&#039;ve had to give into the vocal minority :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always been a little fuzzy on how (and why) setup_postdata() works.  I&#8217;ll have to look into it.  Either way, thanks for the tip.</p>
<p>And the tab order is fixed now &#8211; I had it set up for all you dyslexic tabbers out there, who like tab to work exactly the opposite of how they expected &#8211; but I&#8217;ve had to give into the vocal minority <img src='http://apartmentonesix.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Ohrn</title>
		<link>http://apartmentonesix.com/2009/05/how-to-display-properly-formatted-content-from-a-post-object-in-wordpress/comment-page-1/#comment-945</link>
		<dc:creator>Nick Ohrn</dc:creator>
		<pubDate>Sat, 23 May 2009 03:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=185#comment-945</guid>
		<description>You could also use setup_postdata on the post object itself and then use the built-in display functions.  Depends on your use case scenario, though.

BTW, the fact that I can&#039;t tab from your comment reply textarea to the name (even though the name input comes after the textarea) is somewhat frustrating.  Might want to fix the tab order.</description>
		<content:encoded><![CDATA[<p>You could also use setup_postdata on the post object itself and then use the built-in display functions.  Depends on your use case scenario, though.</p>
<p>BTW, the fact that I can&#8217;t tab from your comment reply textarea to the name (even though the name input comes after the textarea) is somewhat frustrating.  Might want to fix the tab order.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
