{"id":10206,"date":"2011-06-16T03:32:40","date_gmt":"2011-06-16T03:32:40","guid":{"rendered":"https:\/\/pt.wordpress.org\/support\/2011\/06\/16\/pagina-com-templatemodelo\/"},"modified":"2011-06-16T03:32:40","modified_gmt":"2011-06-16T03:32:40","slug":"pagina-com-templatemodelo","status":"closed","type":"topic","link":"https:\/\/pt.wordpress.org\/support\/topic\/pagina-com-templatemodelo\/","title":{"rendered":"P\u00e1gina com template(modelo)"},"content":{"rendered":"<p>Seguinte, fiz um template(modelo) e estou usando em uma p\u00e1gina com nome &#8220;Portfolio&#8221; (permalink &#8216;portfolio&#8217;) .<\/p>\n<p>Esse template eu copiei o c\u00f3digo do loop.php, e alterei para aparecer somente post-type =&gt; &#8216;portfolio&#8217;. Consegui fazer oque eu queria, mas meu problema \u00e9 com a pagina\u00e7\u00e3o, pois o link &#8221; &lt;- posts antigos&#8221; ou &#8220;posts recentes -&gt; &#8221; n\u00e3o mudam de p\u00e1gina.<\/p>\n<p>Quando clico em &#8221; &lt;- posts antigos&#8221;, vai para a p\u00e1gina &#8220;http:\/\/localhost\/wordpress\/portfolio\/page\/2&#8221;<\/p>\n<p>Como fa\u00e7o pra pegar o parametro(string) page\/2 (page=2) ?<\/p>\n<p>Obrigado<\/p>\n","protected":false},"template":"","class_list":["post-10206","topic","type-topic","status-closed","hentry","topic-tag-loop","topic-tag-modelo","topic-tag-pagina","topic-tag-paginacao","topic-tag-portfolio","topic-tag-template"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pt.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pt.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/pt.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/pt.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10206\/revisions"}],"wp:attachment":[{"href":"https:\/\/pt.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}