<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Pagination not working</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Pagination not working</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 03:23:21 +0000</pubDate>

<item>
<title>mkormendy on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1163109</link>
<pubDate>Tue, 04 Aug 2009 22:14:57 +0000</pubDate>
<dc:creator>mkormendy</dc:creator>
<guid isPermaLink="false">1163109@http://wordpress.org/support/</guid>
<description>&#60;p&#62;To anyone reading this post, some of the replies with code solutions have &#38;amp; HTML entities in place of an actual ampersand character in the PHP code.&#60;br /&#62;
This can cause a problem in the implementation of pagination with query_posts.&#60;/p&#62;
&#60;p&#62;As well I have also addressed another problem that talks about the careful use of double quotes and single quotes when passing variables for pagination to the query_posts function as seen here in this support doc:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/topic/206125?replies=3#post-1163093&#34;&#62;http://wordpress.org/support/topic/206125?replies=3#post-1163093&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
// mike
&#60;/p&#62;</description>
</item>
<item>
<title>ungur_darius on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1075569</link>
<pubDate>Sat, 16 May 2009 09:48:35 +0000</pubDate>
<dc:creator>ungur_darius</dc:creator>
<guid isPermaLink="false">1075569@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi everyone,&#60;/p&#62;
&#60;p&#62;I solve the problem, it's working 100% ;)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;
query_posts(&#38;quot;showposts=2&#38;amp;amp;paged=$paged&#38;quot;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>kmpoaquests on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1044556</link>
<pubDate>Mon, 13 Apr 2009 14:34:25 +0000</pubDate>
<dc:creator>kmpoaquests</dc:creator>
<guid isPermaLink="false">1044556@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm not that great with coding lol , but your previous post has seriously helped me , thanks again !
&#60;/p&#62;</description>
</item>
<item>
<title>stvwlf on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1044548</link>
<pubDate>Mon, 13 Apr 2009 14:30:52 +0000</pubDate>
<dc:creator>stvwlf</dc:creator>
<guid isPermaLink="false">1044548@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;See if this explanation helps:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;If you use the query:&#60;br /&#62;
    $recentPosts-&#38;gt;query('showposts=5'.'&#38;amp;paged='.$paged);&#60;br /&#62;
it will automatically page the query based on the page number passed through the url eg &#34;/page/4&#34;&#60;/p&#62;
&#60;p&#62;However, this doesn't work with the “post_nav_link” function because it only checks the $wp_query variable. To get around this you have to trick the function by switching $wp_query on it. Add the first block before your custom loop and the second after to achieve this effect.&#60;/p&#62;
&#60;p&#62;    &#38;lt;?php //query_posts('paged='.$paged);&#60;br /&#62;
    $temp = $wp_query;&#60;br /&#62;
    $wp_query= null;&#60;br /&#62;
       $wp_query = new WP_Query();&#60;br /&#62;
       $wp_query-&#38;gt;query('showposts=5'.'&#38;amp;paged='.$paged);&#60;br /&#62;
    ?&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;?php $wp_query = null; $wp_query = $temp;?&#38;gt;&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>kmpoaquests on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1044515</link>
<pubDate>Mon, 13 Apr 2009 13:57:39 +0000</pubDate>
<dc:creator>kmpoaquests</dc:creator>
<guid isPermaLink="false">1044515@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Replacing the line&#60;br /&#62;
&#60;code&#62;&#38;lt;?php $top_query = new WP_Query(&#38;#39;showposts=1&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;doesn't do much I did take that line of code and replaced&#60;br /&#62;
&#60;code&#62;&#38;lt;?php query_posts(&#38;#39;&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;with the code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;
$top_query = new WP_Query(&#38;#39;showposts=1&#38;amp;amp;paged=$paged&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and it seems to work now , but I guess theres a small problem , when you hit page 2 / 3 / 4 /5 etc , etc&#60;/p&#62;
&#60;p&#62;the top image won't change (I tried putting the code you gave me into there too didn't do anything , any ideas ? atm my code looks like this , and thank you again for your patience&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php get_header(); ?&#38;gt;
&#38;lt;div class=&#38;quot;home fix&#38;quot;&#38;gt;
  &#38;lt;div class=&#38;quot;left&#38;quot;&#38;gt;
    &#38;lt;?php $top_query = new WP_Query(&#38;#39;showposts=1&#38;#39;); ?&#38;gt;
    &#38;lt;?php while($top_query-&#38;gt;have_posts()) : $top_query-&#38;gt;the_post(); $first_post = $post-&#38;gt;ID; ?&#38;gt;
    	&#38;lt;div class=&#38;quot;post&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;
    	  &#38;lt;div class=&#38;quot;main-post-bg&#38;quot;&#38;gt;
    	    &#38;lt;p class=&#38;quot;post-comments&#38;quot;&#38;gt;&#38;lt;?php comments_popup_link(&#38;#39;No Comments&#38;#39;, &#38;#39;1 Comment&#38;#39;, &#38;#39;% Comments&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
    	    &#38;lt;?php $image = get_post_meta($post-&#38;gt;ID, &#38;#39;lead_image&#38;#39;, true); ?&#38;gt;
    	    &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;img width=&#38;quot;593&#38;quot; src=&#38;quot;&#38;lt;?php echo $image; ?&#38;gt;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/a&#38;gt;
    	    &#38;lt;div class=&#38;quot;title-insert&#38;quot;&#38;gt;
    		    &#38;lt;h2&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
    		  &#38;lt;/div&#38;gt;
    		&#38;lt;/div&#38;gt;
      &#38;lt;/div&#38;gt;
    &#38;lt;?php endwhile; ?&#38;gt;
    &#38;lt;div class=&#38;quot;recent-leads fix&#38;quot;&#38;gt;
      &#38;lt;?php $paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;
$top_query = new WP_Query(&#38;#39;showposts=1&#38;amp;amp;paged=$paged&#38;#39;); ?&#38;gt;
  		&#38;lt;?php while(have_posts()) : the_post(); if(!($first_post == $post-&#38;gt;ID)) : ?&#38;gt;
  			&#38;lt;div class=&#38;quot;post&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;
  			  &#38;lt;div class=&#38;quot;secondary-post-bg left&#38;quot;&#38;gt;
  			    &#38;lt;p class=&#38;quot;post-comments&#38;quot;&#38;gt;&#38;lt;?php comments_popup_link(&#38;#39;No Comments&#38;#39;, &#38;#39;1 Comment&#38;#39;, &#38;#39;% Comments&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
  			    &#38;lt;?php $image = get_post_meta($post-&#38;gt;ID, &#38;#39;secondary_image&#38;#39;, true); ?&#38;gt;
      	    &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;img src=&#38;quot;&#38;lt;?php echo $image; ?&#38;gt;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/a&#38;gt;
  			    &#38;lt;div class=&#38;quot;title-insert&#38;quot;&#38;gt;
  				    &#38;lt;h3&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title() ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h3&#38;gt;
  				  &#38;lt;/div&#38;gt;
  				&#38;lt;/div&#38;gt;
  			&#38;lt;/div&#38;gt;
  		&#38;lt;?php endif; endwhile; ?&#38;gt;
  	&#38;lt;/div&#38;gt;
    &#38;lt;br /&#38;gt;&#38;lt;?php if(function_exists(&#38;#39;wp_pagenavi&#38;#39;)) { wp_pagenavi(); } ?&#38;gt;
  &#38;lt;/div&#38;gt;
  &#38;lt;div class=&#38;quot;right&#38;quot;&#38;gt;
    &#38;lt;?php include (TEMPLATEPATH . &#38;#39;/sidebar.php&#38;#39;); ?&#38;gt;
  &#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;?php include (TEMPLATEPATH . &#38;#39;/show_categories.php&#38;#39;); ?&#38;gt;
&#38;lt;?php get_footer(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>stvwlf on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1044447</link>
<pubDate>Mon, 13 Apr 2009 12:15:29 +0000</pubDate>
<dc:creator>stvwlf</dc:creator>
<guid isPermaLink="false">1044447@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Instead of this&#60;br /&#62;
&#60;code&#62;&#38;lt;?php $top_query = new WP_Query(&#38;#39;showposts=1&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;try this&#60;br /&#62;
&#38;lt;?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;&#60;br /&#62;
      $top_query = new WP_Query('showposts=1&#38;amp;paged=$paged'); ?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>kmpoaquests on "Pagination not working"</title>
<link>http://wordpress.org/support/topic/261673#post-1044212</link>
<pubDate>Mon, 13 Apr 2009 02:01:32 +0000</pubDate>
<dc:creator>kmpoaquests</dc:creator>
<guid isPermaLink="false">1044212@http://wordpress.org/support/</guid>
<description>&#60;pre&#62;&#60;code&#62;&#38;lt;?php $top_query = new WP_Query(&#38;#39;showposts=1&#38;#39;); ?&#38;gt;
    &#38;lt;?php while($top_query-&#38;gt;have_posts()) : $top_query-&#38;gt;the_post(); $first_post = $post-&#38;gt;ID; ?&#38;gt;
    	&#38;lt;div class=&#38;quot;post&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;
    	  &#38;lt;div class=&#38;quot;main-post-bg&#38;quot;&#38;gt;
    	    &#38;lt;p class=&#38;quot;post-comments&#38;quot;&#38;gt;&#38;lt;?php comments_popup_link(&#38;#39;No Comments&#38;#39;, &#38;#39;1 Comment&#38;#39;, &#38;#39;% Comments&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
    	    &#38;lt;?php $image = get_post_meta($post-&#38;gt;ID, &#38;#39;lead_image&#38;#39;, true); ?&#38;gt;
    	    &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;img width=&#38;quot;593&#38;quot; src=&#38;quot;&#38;lt;?php echo $image; ?&#38;gt;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/a&#38;gt;
    	    &#38;lt;div class=&#38;quot;title-insert&#38;quot;&#38;gt;
    		    &#38;lt;h2&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
    		  &#38;lt;/div&#38;gt;
    		&#38;lt;/div&#38;gt;
      &#38;lt;/div&#38;gt;
    &#38;lt;?php endwhile; ?&#38;gt;
    &#38;lt;div class=&#38;quot;recent-leads fix&#38;quot;&#38;gt;
      &#38;lt;?php query_posts(&#38;#39;showposts=9&#38;#39;); ?&#38;gt;
  		&#38;lt;?php while(have_posts()) : the_post(); if(!($first_post == $post-&#38;gt;ID)) : ?&#38;gt;
  			&#38;lt;div class=&#38;quot;post&#38;quot; id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot;&#38;gt;
  			  &#38;lt;div class=&#38;quot;secondary-post-bg left&#38;quot;&#38;gt;
  			    &#38;lt;p class=&#38;quot;post-comments&#38;quot;&#38;gt;&#38;lt;?php comments_popup_link(&#38;#39;No Comments&#38;#39;, &#38;#39;1 Comment&#38;#39;, &#38;#39;% Comments&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
  			    &#38;lt;?php $image = get_post_meta($post-&#38;gt;ID, &#38;#39;secondary_image&#38;#39;, true); ?&#38;gt;
      	    &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;img src=&#38;quot;&#38;lt;?php echo $image; ?&#38;gt;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/a&#38;gt;
  			    &#38;lt;div class=&#38;quot;title-insert&#38;quot;&#38;gt;
  				    &#38;lt;h3&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title() ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h3&#38;gt;
  				  &#38;lt;/div&#38;gt;
  				&#38;lt;/div&#38;gt;
  			&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I changed the 15th line from&#60;br /&#62;
      &#38;lt;?php query_posts('showposts=9'); ?&#38;gt;&#60;br /&#62;
to&#60;br /&#62;
      &#38;lt;?php query_posts(''); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;Now it shows up on my site (&#60;a href=&#34;http://www.phatbrush.com&#34; rel=&#34;nofollow&#34;&#62;http://www.phatbrush.com&#60;/a&#62;) and its styled and all is great. &#60;/p&#62;
&#60;p&#62;~My Problem~`&#60;/p&#62;
&#60;p&#62;When you click on any number on the pagination the content doesn't change.&#60;br /&#62;
The url in the browser does change according to the number you clicked , but the actual content doesn't change.&#60;/p&#62;
&#60;p&#62;~My Attempts~&#60;/p&#62;
&#60;p&#62;I also tried to refresh/resave the permalinks and I also re-installed/uninstalled your plugin twice to double check if the database got screwd up somehow.&#60;/p&#62;
&#60;p&#62;Would you have any idea as to what is needed to make this wp-navi plugin work , I've tried searching the internet and multiple forums for a solution? The theme i'm using is unstandard theme by &#60;a href=&#34;http://5thirtyone.com/&#34; rel=&#34;nofollow&#34;&#62;http://5thirtyone.com/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
