<?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>Fri, 06 Nov 2009 18:35:07 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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(&#8221;ID&#8221;) == $comment-&gt;user_id)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumanth</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-357774</link>
		<dc:creator>Sumanth</dc:creator>
		<pubDate>Wed, 08 Jul 2009 02:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-357774</guid>
		<description>This works on Wordpress 2.8 and the author does not have to be an admin.

&lt;code&gt;
&lt;li class=”user_id)
$oddcomment = “authcomment”;
echo $oddcomment;
?&gt;” id=”comment… 
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This works on Wordpress 2.8 and the author does not have to be an admin.</p>
<p><code><br />
&lt;li class=”user_id)<br />
$oddcomment = “authcomment”;<br />
echo $oddcomment;<br />
?&gt;” id=”comment…<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Selda</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-294721</link>
		<dc:creator>Raymond Selda</dc:creator>
		<pubDate>Sun, 29 Mar 2009 09:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-294721</guid>
		<description>Hey Matt! Thanks for this simple and yet effective tip! My original code before was:

if(the_author(&#039;&#039;, false) == get_comment_author())

I can&#039;t remember where I got this but this code works in my localhost using Wordpress 2.7 but when I uploaded the theme in my server it doesn&#039;t work anymore. Your code worked out great and thank you again.</description>
		<content:encoded><![CDATA[<p>Hey Matt! Thanks for this simple and yet effective tip! My original code before was:</p>
<p>if(the_author(&#8221;, false) == get_comment_author())</p>
<p>I can&#8217;t remember where I got this but this code works in my localhost using Wordpress 2.7 but when I uploaded the theme in my server it doesn&#8217;t work anymore. Your code worked out great and thank you again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wendybb</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-273622</link>
		<dc:creator>wendybb</dc:creator>
		<pubDate>Fri, 13 Mar 2009 03:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-273622</guid>
		<description>&lt;li class=&quot;user_id)
$oddcomment = &quot;admincomment&quot;;
echo $oddcomment;
?&gt;&quot; id=&quot;comment-&quot;&gt;

and this class

.admincomment{
	background:#fff2f0;
	border:1px solid #eeeeee;
	padding:5px 0px 5px 0px;
}</description>
		<content:encoded><![CDATA[<p>&lt;li class=&#8221;user_id)<br />
$oddcomment = &#8220;admincomment&#8221;;<br />
echo $oddcomment;<br />
?&gt;&#8221; id=&#8221;comment-&#8221;&gt;</p>
<p>and this class</p>
<p>.admincomment{<br />
	background:#fff2f0;<br />
	border:1px solid #eeeeee;<br />
	padding:5px 0px 5px 0px;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Ross</title>
		<link>http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-240887</link>
		<dc:creator>Christopher Ross</dc:creator>
		<pubDate>Mon, 09 Feb 2009 13:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/highlight-author-comments-wordpress/#comment-240887</guid>
		<description>Thanks Matt and @Aaron, this helps a lot!</description>
		<content:encoded><![CDATA[<p>Thanks Matt and @Aaron, this helps a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
