<?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 highlight author comments in WordPress</title>
	<atom:link href="http://www.mattcutts.com/blog/highlight-author-comments-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/</link>
	<description>neat fun stuff</description>
	<lastBuildDate>Sat, 20 Mar 2010 15:22:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Devolux</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-473393</link>
		<dc:creator>Devolux</dc:creator>
		<pubDate>Thu, 18 Feb 2010 14:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-473393</guid>
		<description>In answer to &lt;strong&gt;Brian Moeskau&lt;/strong&gt;:

The hack is still useful if you want to add some text to the comment information depending on the author. 
On &lt;a href=&quot;http://wordpress.org/extend/themes/jq&quot; rel=&quot;nofollow&quot;&gt;my theme&lt;/a&gt; I have &quot;Author comment&quot; or &quot;Admin comment&quot; displayed before the user name.

However, if you only want to change background colours or whatever, your way is the better.</description>
		<content:encoded><![CDATA[<p>In answer to <strong>Brian Moeskau</strong>:</p>
<p>The hack is still useful if you want to add some text to the comment information depending on the author.<br />
On <a href="http://wordpress.org/extend/themes/jq" rel="nofollow">my theme</a> I have &#8220;Author comment&#8221; or &#8220;Admin comment&#8221; displayed before the user name.</p>
<p>However, if you only want to change background colours or whatever, your way is the better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhilash</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-463190</link>
		<dc:creator>Abhilash</dc:creator>
		<pubDate>Fri, 05 Feb 2010 02:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-463190</guid>
		<description>The code came incorrectly in the previous comment.

&lt;q cite=&quot;&lt;li id=&quot;comment-&quot;&gt;
			
			&lt;cite&gt;:&lt;/cite&gt;
			
				comment_approved == &#039;0&#039;) : ?&gt;
				&lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;
				
				
			
			
			 at  
		&quot;&gt;</description>
		<content:encoded><![CDATA[<p>The code came incorrectly in the previous comment.</p>
<p>&lt;q cite=&quot;&lt;li id=&#8221;comment-&#8221;&gt;</p>
<p>			<cite>:</cite></p>
<p>				comment_approved == &#8216;0&#8242;) : ?&gt;<br />
				<em>Your comment is awaiting moderation.</em></p>
<p>			 at<br />
		&#8220;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Moeskau</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-458590</link>
		<dc:creator>Brian Moeskau</dc:creator>
		<pubDate>Wed, 27 Jan 2010 06:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-458590</guid>
		<description>Note that as of WP 2.7, no code changes are necessary anymore to achieve this.  There is now a function called comment_class() that gives you everything you&#039;ll need to customize your comment styles purely via CSS, although you may have to add that function to your code if your theme has not been updated since before 2.7.  Additional details &lt;a href=&quot;http://ext.raneous.net/2010/01/27/wordpress-highlight-author-comments/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; if you are interested.</description>
		<content:encoded><![CDATA[<p>Note that as of WP 2.7, no code changes are necessary anymore to achieve this.  There is now a function called comment_class() that gives you everything you&#8217;ll need to customize your comment styles purely via CSS, although you may have to add that function to your code if your theme has not been updated since before 2.7.  Additional details <a href="http://ext.raneous.net/2010/01/27/wordpress-highlight-author-comments/" rel="nofollow">here</a> if you are interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xing</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-439626</link>
		<dc:creator>xing</dc:creator>
		<pubDate>Thu, 17 Dec 2009 07:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-439626</guid>
		<description>i have the same problem as ^ even though my theme is infimum.</description>
		<content:encoded><![CDATA[<p>i have the same problem as ^ even though my theme is infimum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Vantine</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-396092</link>
		<dc:creator>John Vantine</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-396092</guid>
		<description>I am using a modified version of the Kubrik theme, and I don&#039;t see any of the code that you mentioned modifying in my comments.php file. Perhaps the template has been changed around since you made this post?</description>
		<content:encoded><![CDATA[<p>I am using a modified version of the Kubrik theme, and I don&#8217;t see any of the code that you mentioned modifying in my comments.php file. Perhaps the template has been changed around since you made this post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C. Cobb</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-391492</link>
		<dc:creator>C. Cobb</dc:creator>
		<pubDate>Sun, 13 Sep 2009 20:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-391492</guid>
		<description>@Aaron Brazell, @Aaron D. Campbell: Thank you for putting me on the right track! All of the other blogs with info on this would compare user ID with a static number, or email address against a hard-coded list. Dismal. However, it seems to me that Editors, Authors, and Contributors should post, and only rarely admins.

&lt;code&gt;
&lt;?php foreach ($comments as $comment) : ?&gt;
    &lt;?php if (!empty($comment-&gt;user_id) 
    &amp;&amp; get_userdata($comment-&gt;user_id)-&gt;wp_user_level == &#039;10&#039;) : ?&gt;
        &lt;div class=&quot;admin_item entry&quot;&gt;
    &lt;?php elseif ( $comment-&gt;user_id == $post-&gt;post_author) : ?&gt;
        &lt;div class=&quot;auth_item entry&quot;&gt;
    &lt;?php else : // comments user_id != post_author ?&gt;
        &lt;div class=&quot;item entry&quot;&gt;
    &lt;?php endif; ?&gt;
&lt;/code&gt;

And then create &quot;.auth_item&quot; and &quot;.admin_item&quot; variations of the &quot;.item&quot; class.
Solo mi dos colones.</description>
		<content:encoded><![CDATA[<p>@Aaron Brazell, @Aaron D. Campbell: Thank you for putting me on the right track! All of the other blogs with info on this would compare user ID with a static number, or email address against a hard-coded list. Dismal. However, it seems to me that Editors, Authors, and Contributors should post, and only rarely admins.</p>
<p><code><br />
&lt;?php foreach ($comments as $comment) : ?&gt;<br />
    &lt;?php if (!empty($comment-&gt;user_id)<br />
    &amp;&amp; get_userdata($comment-&gt;user_id)-&gt;wp_user_level == '10') : ?&gt;<br />
        &lt;div class="admin_item entry"&gt;<br />
    &lt;?php elseif ( $comment-&gt;user_id == $post-&gt;post_author) : ?&gt;<br />
        &lt;div class="auth_item entry"&gt;<br />
    &lt;?php else : // comments user_id != post_author ?&gt;<br />
        &lt;div class="item entry"&gt;<br />
    &lt;?php endif; ?&gt;<br />
</code></p>
<p>And then create &#8220;.auth_item&#8221; and &#8220;.admin_item&#8221; variations of the &#8220;.item&#8221; class.<br />
Solo mi dos colones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goonpay</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-383088</link>
		<dc:creator>goonpay</dc:creator>
		<pubDate>Thu, 27 Aug 2009 11:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-383088</guid>
		<description>Hy, i&#039;m french so i try to speak my best english.

I have a problem with comments in wordpress. I want to align the author and the date in the comments like in your blog.

For ex : 
Goonpay 28 Août 2009 à 12h30

How can i do this ?</description>
		<content:encoded><![CDATA[<p>Hy, i&#8217;m french so i try to speak my best english.</p>
<p>I have a problem with comments in wordpress. I want to align the author and the date in the comments like in your blog.</p>
<p>For ex :<br />
Goonpay 28 Août 2009 à 12h30</p>
<p>How can i do this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enci</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-376233</link>
		<dc:creator>Enci</dc:creator>
		<pubDate>Fri, 14 Aug 2009 23:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-376233</guid>
		<description>wp_list_comments adds a bypostauthor class     (WP 2.7+ )

This is all I had to add to my style.css to achieve the same effect:

&lt;code&gt;
.bypostauthor {
background-color: #E7F8FB !important;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>wp_list_comments adds a bypostauthor class     (WP 2.7+ )</p>
<p>This is all I had to add to my style.css to achieve the same effect:</p>
<p><code><br />
.bypostauthor {<br />
background-color: #E7F8FB !important;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrice Albertus</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-362034</link>
		<dc:creator>Patrice Albertus</dc:creator>
		<pubDate>Fri, 17 Jul 2009 15:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-362034</guid>
		<description>So easy ! I was trying a WP plugin &quot;WP Author Highlight&quot; to do this single action, but this solution looks really better, faster ! Great.</description>
		<content:encoded><![CDATA[<p>So easy ! I was trying a WP plugin &#8220;WP Author Highlight&#8221; to do this single action, but this solution looks really better, faster ! Great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumanth</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-357775</link>
		<dc:creator>Sumanth</dc:creator>
		<pubDate>Wed, 08 Jul 2009 02:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-357775</guid>
		<description>This works on WP 2.8 and the author does not have to be an admin. 

if ( get_the_author_meta(&quot;ID&quot;) == $comment-&gt;user_id)</description>
		<content:encoded><![CDATA[<p>This works on WP 2.8 and the author does not have to be an admin. </p>
<p>if ( get_the_author_meta(&#8220;ID&#8221;) == $comment-&gt;user_id)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
