<?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 Style Editor (Or Any Role) Comments in WordPress</title>
	<atom:link href="http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/?source=rss</link>
	<description>A bit of my personal life, mainly focused on my kids. A bit of code, mainly focused on Wordpress and PHP. Overall, bits of nothing in particular.</description>
	<lastBuildDate>Mon, 15 Mar 2010 11:01:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-98245</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Fri, 08 Jan 2010 13:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-98245</guid>
		<description>Simon Wheatley » I&#039;m not getting a list of available roles. I&#039;m getting a list of *users* and their roles.</description>
		<content:encoded><![CDATA[<p>Simon Wheatley » I&#8217;m not getting a list of available roles. I&#8217;m getting a list of *users* and their roles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Wheatley</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-98244</link>
		<dc:creator>Simon Wheatley</dc:creator>
		<pubDate>Fri, 08 Jan 2010 13:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-98244</guid>
		<description>I&#039;m unsure of the scalability of getting and looping over ALL the users of the blog just to get a list of available roles. Could the code instead use the $wp_roles global?

[php]
	global $wp_roles;
	$all_roles = $wp_roles-&gt;roles;
[/php]

Sensible?

S</description>
		<content:encoded><![CDATA[<p>I'm unsure of the scalability of getting and looping over ALL the users of the blog just to get a list of available roles. Could the code instead use the $wp_roles global?</p>
<div class="igBar"><span id="lphp-1"><a href="#" onclick="javascript:showPlainTxt('php-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000066;">global</span> <span style="color:#0000FF;">$wp_roles</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$all_roles</span> = <span style="color:#0000FF;">$wp_roles</span>-&amp;gt;roles; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Sensible?</p>
<p>S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-97104</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sat, 28 Nov 2009 11:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-97104</guid>
		<description>Merci beaucoup Ozh. Just for argument&#039;s sake, let&#039;s say I wanted to make the &lt;a href=&quot;http://pastebin.com/m2ee390b7&quot; rel=&quot;nofollow&quot;&gt;BuddyPress avatars&lt;/a&gt; show their role as a class, so I could style them. 
I get an empty output. It&#039;s probably because I don&#039;t really get it ;)</description>
		<content:encoded><![CDATA[<p>Merci beaucoup Ozh. Just for argument's sake, let's say I wanted to make the <a href="http://pastebin.com/m2ee390b7" rel="nofollow">BuddyPress avatars</a> show their role as a class, so I could style them.<br />
I get an empty output. It's probably because I don't really get it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-97086</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Fri, 27 Nov 2009 22:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-97086</guid>
		<description>Simon » it will work anywhere. Paste your code snippet &lt;a href=&quot;http://pastebin.com/&quot; rel=&quot;nofollow&quot;&gt;somewhere&lt;/a&gt; and I&#039;ll have a look</description>
		<content:encoded><![CDATA[<p>Simon » it will work anywhere. Paste your code snippet <a href="http://pastebin.com/" rel="nofollow">somewhere</a> and I'll have a look</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-97082</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 27 Nov 2009 20:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-97082</guid>
		<description>Thanks Ozh. It should work sitewide right, not only in comments, or am I still not getting something here?

I tried to add it somewhere else for an avatar class outside the comments loop. And it just give a blank output like this class=&quot; &quot;.

Have a great weekend</description>
		<content:encoded><![CDATA[<p>Thanks Ozh. It should work sitewide right, not only in comments, or am I still not getting something here?</p>
<p>I tried to add it somewhere else for an avatar class outside the comments loop. And it just give a blank output like this class=" ".</p>
<p>Have a great weekend</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-97080</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Fri, 27 Nov 2009 20:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-97080</guid>
		<description>Simon: just inline in comments.php is fine</description>
		<content:encoded><![CDATA[<p>Simon: just inline in comments.php is fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-97068</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 27 Nov 2009 12:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-97068</guid>
		<description>Hey Ozh that&#039;s exactly what I was looking for. I&#039;m not sure I understand though:

$users = get_users_of_blog(); does this have to be included as a function or something or will it work &quot;out of the box&quot; just as you described at the end of the post?</description>
		<content:encoded><![CDATA[<p>Hey Ozh that's exactly what I was looking for. I'm not sure I understand though:</p>
<p>$users = get_users_of_blog(); does this have to be included as a function or something or will it work "out of the box" just as you described at the end of the post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-96787</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Tue, 17 Nov 2009 08:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-96787</guid>
		<description>Yes it would, since you have to use wp_list_comments(), instead of a loop.

But I guess you could apply the same principle to the callback method.</description>
		<content:encoded><![CDATA[<p>Yes it would, since you have to use wp_list_comments(), instead of a loop.</p>
<p>But I guess you could apply the same principle to the callback method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-96786</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Tue, 17 Nov 2009 07:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-96786</guid>
		<description>scribu » I don&#039;t think threaded comments would change anything</description>
		<content:encoded><![CDATA[<p>scribu » I don't think threaded comments would change anything</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Haris</title>
		<link>http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/comment-page-1/#comment-96783</link>
		<dc:creator>Muhammad Haris</dc:creator>
		<pubDate>Tue, 17 Nov 2009 04:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=1363#comment-96783</guid>
		<description>I like the way you used the cache method here. Good job!</description>
		<content:encoded><![CDATA[<p>I like the way you used the cache method here. Good job!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
