<?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: Add Classes to post_class</title>
	<atom:link href="http://digwp.com/2010/03/add-classes-to-post_class/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2010/03/add-classes-to-post_class/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:22:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hassan</title>
		<link>http://digwp.com/2010/03/add-classes-to-post_class/#comment-3729</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Sat, 13 Mar 2010 02:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1567#comment-3729</guid>
		<description>I didn&#039;t about the built-in method. But the filtering is darn easy. Define the function and pass it an array. Add items to this array and return it.

&lt;code&gt;add_filter(&#039;post_class&#039;, &#039;additional_classes&#039;);&lt;/code&gt;

&lt;code&gt;function additional_classes($c) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;$c[] = &#039;myclass&#039;;&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;return $c;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;

Thanks for the tip, Chris.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t about the built-in method. But the filtering is darn easy. Define the function and pass it an array. Add items to this array and return it.</p>
<p><code>add_filter('post_class', 'additional_classes');</code></p>
<p><code>function additional_classes($c) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>$c[] = 'myclass';</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>return $c;</code><br />
<code>}</code></p>
<p>Thanks for the tip, Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephanie</title>
		<link>http://digwp.com/2010/03/add-classes-to-post_class/#comment-3725</link>
		<dc:creator>Stephanie</dc:creator>
		<pubDate>Fri, 12 Mar 2010 22:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1567#comment-3725</guid>
		<description>Certainly does look useful. I really should try this out next time I build a theme. :)</description>
		<content:encoded><![CDATA[<p>Certainly does look useful. I really should try this out next time I build a theme. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

