<?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: WordPress: Quick Numbering of Paginated Posts with Results Count</title>
	<atom:link href="http://www.doc4design.com/articles/wordpress-numbering-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doc4design.com/articles/wordpress-numbering-posts/</link>
	<description>Advertising and Marketing agency located in Northwest Arkansas providing easily attainable, creative solutions for any outlet in any stage of growth.</description>
	<lastBuildDate>Tue, 07 Sep 2010 15:11:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Bac</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-461</link>
		<dc:creator>Bac</dc:creator>
		<pubDate>Fri, 09 Apr 2010 05:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-461</guid>
		<description>I&#039;m using infinite scroll which loads the next page via ajax so the page number does not change... It does wrap the page in a div called page 2 tho

wondering if you could think of a way of getting round this for both JS on and off? I&#039;ve tried and failed!

Cheers,
bac</description>
		<content:encoded><![CDATA[<p>I&#8217;m using infinite scroll which loads the next page via ajax so the page number does not change&#8230; It does wrap the page in a div called page 2 tho</p>
<p>wondering if you could think of a way of getting round this for both JS on and off? I&#8217;ve tried and failed!</p>
<p>Cheers,<br />
bac</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-443</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Mar 2010 15:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-443</guid>
		<description>Hey Guys,

I tried both of those solutions and for some reason which ever is declared first, it stays like that after that condition is met. So after paged 2... the count stops and it doesn&#039;t acknowledge paged 3 :(

This is driving me nutssssss. I&#039;m still trying to figure it out. I tried using conditional statements as well with using that !not but I still get the same effect where it won&#039;t go past paged 2..</description>
		<content:encoded><![CDATA[<p>Hey Guys,</p>
<p>I tried both of those solutions and for some reason which ever is declared first, it stays like that after that condition is met. So after paged 2&#8230; the count stops and it doesn&#8217;t acknowledge paged 3 <img src='http://www.doc4design.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>This is driving me nutssssss. I&#8217;m still trying to figure it out. I tried using conditional statements as well with using that !not but I still get the same effect where it won&#8217;t go past paged 2..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-441</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Mon, 22 Mar 2010 12:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-441</guid>
		<description>Dave, 

Just read your latest post. Be sure to add more is_paged() to continue counting. This is all manual.

&lt;code&gt;&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 102;
} elseif((is_paged(4))) {
 $count = 153;
} elseif((is_paged(5))) {
 $count = 204;
} else {
 $count = 1;
} ?&gt;
&lt;/code&gt;

Hopefully my math isn&#039;t off too much.</description>
		<content:encoded><![CDATA[<p>Dave, </p>
<p>Just read your latest post. Be sure to add more is_paged() to continue counting. This is all manual.</p>
<p><pre><code>&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 102;
} elseif((is_paged(4))) {
 $count = 153;
} elseif((is_paged(5))) {
 $count = 204;
} else {
 $count = 1;
} ?&gt;
</code></pre></p>
<p>Hopefully my math isn&#8217;t off too much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-440</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Mon, 22 Mar 2010 12:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-440</guid>
		<description>Dave, 

Try this:

&lt;code&gt;&lt;?php if((preg_match(&#039;/\/?paged=2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/?paged=3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} elseif((preg_match(&#039;/\/?paged=4\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 152;
} else {
 $count = 1;
} ?&gt;&lt;/code&gt;

All we are doing here is reading the address bar information. Let me know how that works.</description>
		<content:encoded><![CDATA[<p>Dave, </p>
<p>Try this:</p>
<p><pre><code>&lt;?php if((preg_match(&#039;/\/?paged=2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/?paged=3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} elseif((preg_match(&#039;/\/?paged=4\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 152;
} else {
 $count = 1;
} ?&gt;</code></pre></p>
<p>All we are doing here is reading the address bar information. Let me know how that works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-439</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Mar 2010 03:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-439</guid>
		<description>Sorry for the multiple posts here.. But I&#039;m having a problem with the &quot;elseif&quot; tags. They&#039;re not working for some reason.

&lt;code&gt;
&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;
&lt;/code&gt;

Once it gets to page 3, it stays on 51 and doesn&#039;t go any higher than that on any page after that. Any idea on how to find a solution for this?</description>
		<content:encoded><![CDATA[<p>Sorry for the multiple posts here.. But I&#8217;m having a problem with the &#8220;elseif&#8221; tags. They&#8217;re not working for some reason.</p>
<p><pre><code>
&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;
</code></pre></p>
<p>Once it gets to page 3, it stays on 51 and doesn&#8217;t go any higher than that on any page after that. Any idea on how to find a solution for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-2/#comment-438</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Mar 2010 03:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-438</guid>
		<description>Hey there once again...

I figured it out! Thank you so much for your help. I set it up like this...

&lt;code&gt; 
&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;
&lt;?
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++;?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
&lt;/code&gt;

You&#039;re too awesome! Thank you once again!</description>
		<content:encoded><![CDATA[<p>Hey there once again&#8230;</p>
<p>I figured it out! Thank you so much for your help. I set it up like this&#8230;</p>
<p><pre><code> 
&lt;?php if((is_paged(2))) {
 $count = 51;
} elseif((is_paged(3))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;
&lt;?
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++;?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
</code></pre></p>
<p>You&#8217;re too awesome! Thank you once again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-1/#comment-437</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Mar 2010 00:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-437</guid>
		<description>Hey Doc,

Thanks for getting back to me so soon. No one ever gets back to me on any blog! Haha. 

Um, I tried to add that to my code but I was unsuccessful. My links look like this so maybe that&#039;s why it won&#039;t work? 

&lt;code&gt;http://website.com/wordpress/?paged=2&lt;/code&gt;

The code that I&#039;m applying that to is

&lt;code&gt;
&lt;?php 
$count = 1; 
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
post numbers get generated here
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++; ?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
&lt;/code&gt;

So once applied, it looks like this

&lt;code&gt;
&lt;?php if((preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;

&lt;?php 
$count = 1; 
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
post numbers get generated here
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++; ?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
&lt;/code&gt;

It&#039;s more than likely that I&#039;m doing something wrong here. Do you think you could help me out incorporating the additional stuff needed to make this complete?</description>
		<content:encoded><![CDATA[<p>Hey Doc,</p>
<p>Thanks for getting back to me so soon. No one ever gets back to me on any blog! Haha. </p>
<p>Um, I tried to add that to my code but I was unsuccessful. My links look like this so maybe that&#8217;s why it won&#8217;t work? </p>
<p><code>http://website.com/wordpress/?paged=2</code></p>
<p>The code that I&#8217;m applying that to is</p>
<p><pre><code>
&lt;?php 
$count = 1; 
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
post numbers get generated here
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++; ?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
</code></pre></p>
<p>So once applied, it looks like this</p>
<p><pre><code>
&lt;?php if((preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} else {
 $count = 1;
} ?&gt;

&lt;?php 
$count = 1; 
if (have_posts()) : while(have_posts()): the_post(); ?&gt;
post numbers get generated here
&lt;a href=&quot;#&quot; onclick=&quot;scrollToEntry(&lt;?the_ID(); ?&gt;)&quot;&gt;&lt;?php echo $count; $count++; ?&gt;&lt;/a&gt;

&lt;?php endwhile; endif; ?&gt;
</code></pre></p>
<p>It&#8217;s more than likely that I&#8217;m doing something wrong here. Do you think you could help me out incorporating the additional stuff needed to make this complete?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-1/#comment-434</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Sun, 21 Mar 2010 13:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-434</guid>
		<description>Dave, 

Continue adding more page counts:

&lt;code&gt;
&lt;?php if((preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} elseif((preg_match(&#039;/\/4\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 152;
} else {
 $count = 1;
} ?&gt;&lt;/code&gt;

Note that the number in this line &lt;code&gt;(preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;)&lt;/code&gt; represents something that will be shown in the address bar. For example: http://www.doc4design.com/articles/page/2/ This cold be anything from a word such as &quot;articles&quot; to a number such as &quot;3&quot;. The trick here is to find something that is unique to the page which you are on. This is why we have chosen the page number itself.</description>
		<content:encoded><![CDATA[<p>Dave, </p>
<p>Continue adding more page counts:</p>
<p><pre><code>
&lt;?php if((preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 51;
} elseif((preg_match(&#039;/\/3\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 101;
} elseif((preg_match(&#039;/\/4\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;]))) {
 $count = 152;
} else {
 $count = 1;
} ?&gt;</code></pre></p>
<p>Note that the number in this line <code>(preg_match(&#039;/\/2\//&#039;,$_SERVER[&#039;REQUEST_URI&#039;)</code> represents something that will be shown in the address bar. For example: <a href="http://www.doc4design.com/articles/page/2/" rel="nofollow">http://www.doc4design.com/articles/page/2/</a> This cold be anything from a word such as &#8220;articles&#8221; to a number such as &#8220;3&#8243;. The trick here is to find something that is unique to the page which you are on. This is why we have chosen the page number itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-1/#comment-431</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 21 Mar 2010 11:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-431</guid>
		<description>Hey there, I wanted to know how I could get this to keep the count going once I hit page 2,3, etc... Any help would be great.</description>
		<content:encoded><![CDATA[<p>Hey there, I wanted to know how I could get this to keep the count going once I hit page 2,3, etc&#8230; Any help would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; WordPress: Quick Numbering of Paginated Posts with Results Count</title>
		<link>http://www.doc4design.com/articles/wordpress-numbering-posts/comment-page-1/#comment-394</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; WordPress: Quick Numbering of Paginated Posts with Results Count</dc:creator>
		<pubDate>Thu, 18 Feb 2010 20:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/?p=1401#comment-394</guid>
		<description>[...] reading here: WordPress: Quick Numbering of Paginated Posts with Results Count Tags: design, matthew, numbers, [...]</description>
		<content:encoded><![CDATA[<p>[...] reading here: WordPress: Quick Numbering of Paginated Posts with Results Count Tags: design, matthew, numbers, [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
