<?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: Adding Comment Numbers To Your WordPress Theme</title>
	<atom:link href="http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Mon, 21 May 2012 19:31:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Newman</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-54164</link>
		<dc:creator>Newman</dc:creator>
		<pubDate>Mon, 04 Apr 2011 15:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-54164</guid>
		<description>Wrote again... 
1st step: comments.php
&lt;code&gt;


 &#039;twentyten_comment&#039; ) ); ?&gt;

&lt;/code&gt;

2nd step: functions.php
&lt;code&gt;
function twentyten_comment( $comment, $args, $depth ) {
$GLOBALS[&#039;comment&#039;] = $comment;
switch ( $comment-&gt;comment_type ) :
case &#039;&#039; :
$GLOBALS[&#039;mycommentnumber&#039;]++; // increment value by one ?&gt;
&lt;li  id=&quot;li-comment-&quot;&gt;


&lt;div id=&quot;comment-&quot; class=&quot;comment-box&quot; &gt;


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Wrote again&#8230;<br />
1st step: comments.php<br />
<code></p>
<p> 'twentyten_comment' ) ); ?&gt;</p>
<p></code></p>
<p>2nd step: functions.php<br />
<code><br />
function twentyten_comment( $comment, $args, $depth ) {<br />
$GLOBALS['comment'] = $comment;<br />
switch ( $comment-&gt;comment_type ) :<br />
case '' :<br />
$GLOBALS['mycommentnumber']++; // increment value by one ?&gt;<br />
&lt;li  id="li-comment-"&gt;</p>
<p>&lt;div id=&quot;comment-" class="comment-box" &gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Newman</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-54163</link>
		<dc:creator>Newman</dc:creator>
		<pubDate>Mon, 04 Apr 2011 15:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-54163</guid>
		<description>My solution for WP 3.2... I used the &quot;Twenty Ten 1.0&quot; functions.php for example... in function twentyten_comment() (note: this function is called back from comments.php by wp_list_comments() to get template for comments and pingbacks). I just add a global variable ($GLOBALS[&#039;mycommentnumber&#039;]) and after that just increment by one:

1st step: comments.php


 &#039;twentyten_comment&#039; ) ); ?&gt;

_____________________________________________________
2nd step: functions.php
function twentyten_comment( $comment, $args, $depth ) {
$GLOBALS[&#039;comment&#039;] = $comment;
switch ( $comment-&gt;comment_type ) :
	case &#039;&#039; :
$GLOBALS[&#039;mycommentnumber&#039;]++; // first change ?&gt;
&lt;li  id=&quot;li-comment-&quot;&gt;



&lt;div id=&quot;comment-&quot; class=&quot;comment-box&quot; &gt;

	

not so complicated right? jajajajajajajajaja... that was useful for me, so I share it...</description>
		<content:encoded><![CDATA[<p>My solution for WP 3.2&#8230; I used the &#8220;Twenty Ten 1.0&#8243; functions.php for example&#8230; in function twentyten_comment() (note: this function is called back from comments.php by wp_list_comments() to get template for comments and pingbacks). I just add a global variable ($GLOBALS['mycommentnumber']) and after that just increment by one:</p>
<p>1st step: comments.php</p>
<p> &#8216;twentyten_comment&#8217; ) ); ?&gt;</p>
<p>_____________________________________________________<br />
2nd step: functions.php<br />
function twentyten_comment( $comment, $args, $depth ) {<br />
$GLOBALS['comment'] = $comment;<br />
switch ( $comment-&gt;comment_type ) :<br />
	case &#8221; :<br />
$GLOBALS['mycommentnumber']++; // first change ?&gt;<br />
&lt;li  id=&#8221;li-comment-&#8221;&gt;</p>
<p>&lt;div id=&quot;comment-&#8221; class=&#8221;comment-box&#8221; &gt;</p>
<p>not so complicated right? jajajajajajajajaja&#8230; that was useful for me, so I share it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BJ</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-44023</link>
		<dc:creator>BJ</dc:creator>
		<pubDate>Mon, 31 Jan 2011 08:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-44023</guid>
		<description>Update the script this is old.. 

Nobody use this WP version anymore..</description>
		<content:encoded><![CDATA[<p>Update the script this is old.. </p>
<p>Nobody use this WP version anymore..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: durian</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-43000</link>
		<dc:creator>durian</dc:creator>
		<pubDate>Sat, 15 Jan 2011 08:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-43000</guid>
		<description>is this script still working for wp 3.2? update please!!</description>
		<content:encoded><![CDATA[<p>is this script still working for wp 3.2? update please!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 13770</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-25778</link>
		<dc:creator>13770</dc:creator>
		<pubDate>Sun, 24 Oct 2010 16:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-25778</guid>
		<description>I have is the same as Derk (http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-6253) my comments are currently setup to show the newest comments on top, instead of the default oldest first. How can I change the order, number 1 at the bottom and the most recent at the top.
Thnak you</description>
		<content:encoded><![CDATA[<p>I have is the same as Derk (<a href="http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-6253" rel="nofollow">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-6253</a>) my comments are currently setup to show the newest comments on top, instead of the default oldest first. How can I change the order, number 1 at the bottom and the most recent at the top.<br />
Thnak you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tatil yerleri</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24530</link>
		<dc:creator>tatil yerleri</dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24530</guid>
		<description>Thanks for the solution Justin</description>
		<content:encoded><![CDATA[<p>Thanks for the solution Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joy</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24515</link>
		<dc:creator>Joy</dc:creator>
		<pubDate>Fri, 17 Sep 2010 09:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24515</guid>
		<description>That&#039;s really a useful hack, appreciate</description>
		<content:encoded><![CDATA[<p>That&#8217;s really a useful hack, appreciate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joy</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24514</link>
		<dc:creator>Joy</dc:creator>
		<pubDate>Fri, 17 Sep 2010 09:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-24514</guid>
		<description>That&#039;s great! thank you for the tip</description>
		<content:encoded><![CDATA[<p>That&#8217;s great! thank you for the tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-23518</link>
		<dc:creator>Matias</dc:creator>
		<pubDate>Fri, 27 Aug 2010 19:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-23518</guid>
		<description>awesome, it was very helpful :)</description>
		<content:encoded><![CDATA[<p>awesome, it was very helpful <img src='http://wphacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janet</title>
		<link>http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-16921</link>
		<dc:creator>Janet</dc:creator>
		<pubDate>Thu, 13 May 2010 09:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/how-to-adding-comment-numbers-to-your-wordpress-theme/#comment-16921</guid>
		<description>Many thanks. I look forward to checking that out.

Kind regards

Janet</description>
		<content:encoded><![CDATA[<p>Many thanks. I look forward to checking that out.</p>
<p>Kind regards</p>
<p>Janet</p>
]]></content:encoded>
	</item>
</channel>
</rss>

