<?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: Better WordPress pagination</title>
	<atom:link href="http://sltaylor.co.uk/blog/better-wordpress-pagination/feed/" rel="self" type="application/rss+xml" />
	<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/</link>
	<description>Freelance WordPress developer in London - XHTML, CSS &#38; design</description>
	<lastBuildDate>Sat, 25 Feb 2012 11:45:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Duxx</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-21974</link>
		<dc:creator>Duxx</dc:creator>
		<pubDate>Tue, 21 Jun 2011 11:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-21974</guid>
		<description>Thank you Steve Taylor :)</description>
		<content:encoded><![CDATA[<p>Thank you Steve Taylor :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-21972</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Tue, 21 Jun 2011 10:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-21972</guid>
		<description>Hi Duxx, any more details? Maybe this will help: http://sltaylor.co.uk/blog/solving-wordpress-problems/</description>
		<content:encoded><![CDATA[<p>Hi Duxx, any more details? Maybe this will help: <a href="http://sltaylor.co.uk/blog/solving-wordpress-problems/">http://sltaylor.co.uk/blog/solving-wordpress-problems/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duxx</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-21968</link>
		<dc:creator>Duxx</dc:creator>
		<pubDate>Tue, 21 Jun 2011 09:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-21968</guid>
		<description>For me its not working, shows the page links but when i click on it nothing happens</description>
		<content:encoded><![CDATA[<p>For me its not working, shows the page links but when i click on it nothing happens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-21259</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Sat, 11 Jun 2011 23:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-21259</guid>
		<description>Danilo, many thanks for posting this. All my work is project-driven at the moment, so maybe one day a project will demand better pagination and I&#039;ll improve my code!</description>
		<content:encoded><![CDATA[<p>Danilo, many thanks for posting this. All my work is project-driven at the moment, so maybe one day a project will demand better pagination and I&#8217;ll improve my code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-21255</link>
		<dc:creator>Danilo</dc:creator>
		<pubDate>Sat, 11 Jun 2011 22:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-21255</guid>
		<description>Hello Steve, I wanted to say thank you for the function you shared with us.

I&#039;ve found in very useful and decided to improve it a little.
Now it shows just a range of pages before and after the actual one and also 2 links, one for the first and one for the last page available, but only when the current page is not too close to one of them.
I&#039;ve made it work both if the site uses &quot;pretty permalinks&quot; or the standard permalinks structure.

I&#039;ve pasted the function, together with a small helper function on &lt;a href=&quot;http://pastebin.com/yPbvVTBD&quot;&gt;pastebin&lt;/a&gt;, just in case you were curious and wanted to give it a look..

I hope this is useful to others as your one was useful to me.. 


bye ;)</description>
		<content:encoded><![CDATA[<p>Hello Steve, I wanted to say thank you for the function you shared with us.</p>
<p>I&#8217;ve found in very useful and decided to improve it a little.<br />
Now it shows just a range of pages before and after the actual one and also 2 links, one for the first and one for the last page available, but only when the current page is not too close to one of them.<br />
I&#8217;ve made it work both if the site uses &#8220;pretty permalinks&#8221; or the standard permalinks structure.</p>
<p>I&#8217;ve pasted the function, together with a small helper function on <a href="http://pastebin.com/yPbvVTBD">pastebin</a>, just in case you were curious and wanted to give it a look..</p>
<p>I hope this is useful to others as your one was useful to me.. </p>
<p>bye ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-19113</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Sun, 15 May 2011 09:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-19113</guid>
		<description>David, I&#039;ve used jQuery tabs but not for this kind of thing. I can&#039;t really grasp the issue here without setting the whole thing up and I&#039;m working to a tight deadline at the moment. Maybe try the jQuery Tools forum or the wp-hackers list? Good luck!</description>
		<content:encoded><![CDATA[<p>David, I&#8217;ve used jQuery tabs but not for this kind of thing. I can&#8217;t really grasp the issue here without setting the whole thing up and I&#8217;m working to a tight deadline at the moment. Maybe try the jQuery Tools forum or the wp-hackers list? Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David H</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-19112</link>
		<dc:creator>David H</dc:creator>
		<pubDate>Sun, 15 May 2011 09:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-19112</guid>
		<description>Hey Steve, you are probably so tired of responding to this thread by now....

I am wondering, of course, if there is an expanded way to paginate now that things like Jquery Tabs are popular on the home page of various WordPress themes.

For instance, in a classified ads theme which also uses some modified wp code to paginate, there is a default index page Tab display of various queries.

Tab one might be a query run for the &quot;Latest Ads&quot;--if the query is set for, say, 30 ads, then this tab will line up the short &quot;posts&quot; of ads and show &quot;Page 1 of 3&quot; at the bottom of that tab view.  If I click on the number 2 the link will be &quot;/page/2/&quot; and the next set of listings appears inside the same tab.

However, the PROBLEM starts when I click Tab Two-----If Tab 2 &quot;Featured Listings&quot; (using &quot;sticky&quot;) is clicked then I see the listings (that are all marked &quot;sticky&quot;) and at the bottom of the tab I may see &quot;Page 1 of 4&quot;. But to click, say, number 2 will produce the url &quot;/page/2&quot; again--the same url as in Tab One.

On clicking &quot;2&quot; in the &quot;Featured Listings&quot; Tab the resulting listings will now be thrown back to the Tab one view and I will be looking at the Tab One &quot;Just Listed&quot; second page of listings.

Some people have said that only an Ajaxed version can help create separate Tabs pagination that is correct for the query that produces those types of listings.

I am thinking that there must be a function that could run through the queries in the Tabs block of code and produce at one time the Complete list of &quot;/page/1....infinity/&quot;, accumulating all of the paginations for 2 or 3 tabs of separate queries, whether by iterating &quot;/page_just_listed/3/&quot; and &quot;/page_featured/4/&quot;, or by creating , or,

 just creating the Total pagination in one string for all three tabs in a way that while we are in Tab two the pagination stays in the Tab two view while &quot;/page/12/&quot; is being served.

It is the jquery Tabs invention that creates a need for a pagination that matches its needs.

Steve, can you think of a way to do this without Ajax?

Thank you for your consideration!</description>
		<content:encoded><![CDATA[<p>Hey Steve, you are probably so tired of responding to this thread by now&#8230;.</p>
<p>I am wondering, of course, if there is an expanded way to paginate now that things like Jquery Tabs are popular on the home page of various WordPress themes.</p>
<p>For instance, in a classified ads theme which also uses some modified wp code to paginate, there is a default index page Tab display of various queries.</p>
<p>Tab one might be a query run for the &#8220;Latest Ads&#8221;&#8211;if the query is set for, say, 30 ads, then this tab will line up the short &#8220;posts&#8221; of ads and show &#8220;Page 1 of 3&#8243; at the bottom of that tab view.  If I click on the number 2 the link will be &#8220;/page/2/&#8221; and the next set of listings appears inside the same tab.</p>
<p>However, the PROBLEM starts when I click Tab Two&#8212;&#8211;If Tab 2 &#8220;Featured Listings&#8221; (using &#8220;sticky&#8221;) is clicked then I see the listings (that are all marked &#8220;sticky&#8221;) and at the bottom of the tab I may see &#8220;Page 1 of 4&#8243;. But to click, say, number 2 will produce the url &#8220;/page/2&#8243; again&#8211;the same url as in Tab One.</p>
<p>On clicking &#8220;2&#8243; in the &#8220;Featured Listings&#8221; Tab the resulting listings will now be thrown back to the Tab one view and I will be looking at the Tab One &#8220;Just Listed&#8221; second page of listings.</p>
<p>Some people have said that only an Ajaxed version can help create separate Tabs pagination that is correct for the query that produces those types of listings.</p>
<p>I am thinking that there must be a function that could run through the queries in the Tabs block of code and produce at one time the Complete list of &#8220;/page/1&#8230;.infinity/&#8221;, accumulating all of the paginations for 2 or 3 tabs of separate queries, whether by iterating &#8220;/page_just_listed/3/&#8221; and &#8220;/page_featured/4/&#8221;, or by creating , or,</p>
<p> just creating the Total pagination in one string for all three tabs in a way that while we are in Tab two the pagination stays in the Tab two view while &#8220;/page/12/&#8221; is being served.</p>
<p>It is the jquery Tabs invention that creates a need for a pagination that matches its needs.</p>
<p>Steve, can you think of a way to do this without Ajax?</p>
<p>Thank you for your consideration!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-18813</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Fri, 06 May 2011 09:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-18813</guid>
		<description>@Jonny, thanks for the heads-up on the default argument, I&#039;ve corrected it. My own version of this has changed a lot for my needs, I just added that blindly on the advice of a previous commenter.

I&#039;ve had situations where I need to pass a custom loop query, so that facility is there if needed. Just pass &lt;code&gt;$wp_query&lt;/code&gt; if you want.</description>
		<content:encoded><![CDATA[<p>@Jonny, thanks for the heads-up on the default argument, I&#8217;ve corrected it. My own version of this has changed a lot for my needs, I just added that blindly on the advice of a previous commenter.</p>
<p>I&#8217;ve had situations where I need to pass a custom loop query, so that facility is there if needed. Just pass <code>$wp_query</code> if you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonny</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-18789</link>
		<dc:creator>Jonny</dc:creator>
		<pubDate>Thu, 05 May 2011 14:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-18789</guid>
		<description>Nice piece of code iron out a few issues and it could become a very useful function

$wp_query is globally available, i might be wrong but i can&#039;t think of any situation where you&#039;d need to pass the query.

I don&#039;t know if this cased the earlier issue but default values for arguments can&#039;t be functions, they have to be constants in php, i&#039;m confused at how this worked at all as that usually throws a fatal error.

The function won&#039;t work with default permalinks.</description>
		<content:encoded><![CDATA[<p>Nice piece of code iron out a few issues and it could become a very useful function</p>
<p>$wp_query is globally available, i might be wrong but i can&#8217;t think of any situation where you&#8217;d need to pass the query.</p>
<p>I don&#8217;t know if this cased the earlier issue but default values for arguments can&#8217;t be functions, they have to be constants in php, i&#8217;m confused at how this worked at all as that usually throws a fatal error.</p>
<p>The function won&#8217;t work with default permalinks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/better-wordpress-pagination/#comment-18621</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Sun, 01 May 2011 11:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=149#comment-18621</guid>
		<description>Hi, could you put long bits of code on pastebin.ca, and be more specific with your question? Sounds like you need an AJAX version of this script, which I don&#039;t have at the moment.</description>
		<content:encoded><![CDATA[<p>Hi, could you put long bits of code on pastebin.ca, and be more specific with your question? Sounds like you need an AJAX version of this script, which I don&#8217;t have at the moment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  sltaylor.co.uk/blog/better-wordpress-pagination/feed/ ) in 0.24812 seconds, on May 17th, 2012 at 1:14 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 17th, 2012 at 2:14 pm UTC -->
