{"id":2865,"date":"2010-03-01T07:04:39","date_gmt":"2010-03-01T07:04:39","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/pagenavi-nao-muda-de-pagina-1\/"},"modified":"2016-08-06T01:08:04","modified_gmt":"2016-08-06T01:08:04","slug":"pagenavi-nao-muda-de-pagina-1","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/pagenavi-nao-muda-de-pagina-1\/","title":{"rendered":"Pagenavi n\u00e3o muda de p\u00e1gina"},"content":{"rendered":"<p>Se algu\u00e9m puder ajudar, ser\u00e1 muito \u00fatil. Utilizo o plugin pagenavi, s\u00f3 que quando clica para trocar de p\u00e1gina, o link se altera para: \/page\/2. S\u00f3 que continua o mesmo conte\u00fado da p\u00e1gina 1. E tamb\u00e9m continua l\u00e1 em baixo: P\u00e1gina 1 de 3.<\/p>\n<p>Segue o c\u00f3digo do index.php<\/p>\n<p>&lt;?php get_header(); ?&gt;<\/p>\n<p>&lt;div id=&#8221;content&#8221;&gt;<\/p>\n<p>&lt;?php include (TEMPLATEPATH . &#8216;\/slide.php&#8217;); ?&gt;<\/p>\n<p>&lt;?php if (is_home()) { query_posts(&#8220;category_name=geral&#8221;); } ?&gt;<\/p>\n<p>&lt;?php if (have_posts()) : ?&gt;<br \/>\n&lt;?php while (have_posts()) : the_post(); ?&gt;<\/p>\n<p>&lt;div class=&#8221;single&#8221; id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221;&gt;<\/p>\n<p>&lt;div class=&#8221;title&#8221;&gt;<br \/>\n&lt;h2&gt;<a rel=\"bookmark\">&lt;?php the_title(); ?&gt;<\/a>&lt;\/h2&gt;<br \/>\n&lt;div class=&#8221;date&#8221;&gt;&lt;\/span&gt; &lt;span class=&#8221;clock&#8221;&gt; &lt;?php the_time(&#8216;F &#8211; j &#8211; Y&#8217;); ?&gt;&lt;\/span&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;cover&#8221;&gt;<br \/>\n&lt;div class=&#8221;entry&#8221;&gt;<br \/>\n          &lt;?php the_excerpt() ?&gt;<br \/>\n&lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;singleinfo&#8221;&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>&lt;?php endwhile; ?&gt;<\/p>\n<p>\t\t&lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<br \/>\n &lt;div id=&#8221;navigation&#8221;&gt;<br \/>\n  &lt;?php if(function_exists(&#8216;wp_pagenavi&#8217;)) : ?&gt;<br \/>\n        &lt;?php wp_pagenavi() ?&gt;<br \/>\n \t   &lt;?php else : ?&gt;<br \/>\n        &lt;div class=&#8221;alignleft&#8221;&gt;&lt;?php next_posts_link(__(&#8216;&laquo; Older Entries&#8217;,&#8217;arclite&#8217;)) ?&gt;&lt;\/div&gt;<br \/>\n        &lt;div class=&#8221;alignright&#8221;&gt;&lt;?php previous_posts_link(__(&#8216;Newer Entries &raquo;&#8217;,&#8217;arclite&#8217;)) ?&gt;&lt;\/div&gt;<br \/>\n        &lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<br \/>\n       &lt;?php endif; ?&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>\t&lt;?php else : ?&gt;<\/p>\n<p>\t\t&lt;h1 class=&#8221;title&#8221;&gt;Not Found&lt;\/h1&gt;<br \/>\n\t\t&lt;p&gt;Sorry, but you are looking for something that isn&#8217;t here.&lt;\/p&gt;<\/p>\n<p>\t&lt;?php endif; ?&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>&lt;?php get_sidebar(); ?&gt;<\/p>\n<p>&lt;?php get_footer(); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-2865","topic","type-topic","status-closed","hentry","topic-tag-pagenavi"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2865\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}