{"id":4717,"date":"2010-06-14T11:10:33","date_gmt":"2010-06-14T11:10:33","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/pegar-id-do-postpagina-por-php\/"},"modified":"2016-08-06T01:09:01","modified_gmt":"2016-08-06T01:09:01","slug":"pegar-id-do-postpagina-por-php","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/pegar-id-do-postpagina-por-php\/","title":{"rendered":"Pegar ID do post\/p\u00e1gina por PHP"},"content":{"rendered":"<p>Ol\u00e1 Pessoal!<\/p>\n<p>Seguinte.. gostaria de pegar o ID da p\u00e1gina por PHP, para fazer um IF.<\/p>\n<p>Exemplo: http:\/\/www.meusite.com.br\/?p=44<\/p>\n<p>Como a p\u00e1gina de artigos \u00e9 igual sempre, gostaria de &#8220;pegar&#8221; esse n\u00famero &#8220;44&#8221; para fazer condi\u00e7\u00f5es.<\/p>\n<p>Como se fosse assim: &lt;?php &#8220;pegar_numero_do_post&#8221; ?&gt;<\/p>\n<p>Obrigado,<br \/>\nVirgilio Junior<\/p>\n","protected":false},"template":"","class_list":["post-4717","topic","type-topic","status-closed","hentry","topic-tag-id","topic-tag-pagina"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4717","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\/4717\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}