{"id":18901,"date":"2012-02-06T16:04:23","date_gmt":"2012-02-06T16:04:23","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/a-singlephp-nao-aparece-o-que-pode-ser\/"},"modified":"2016-08-06T01:15:48","modified_gmt":"2016-08-06T01:15:48","slug":"a-singlephp-nao-aparece-o-que-pode-ser","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/a-singlephp-nao-aparece-o-que-pode-ser\/","title":{"rendered":"A single.php n\u00e3o aparece. O que pode ser?"},"content":{"rendered":"<p>Ol Pessoal. Eu coloquei este codigo aqui no arquivo single.php . Setei as li\u00b4s certinho para chamar a single, mas n\u00e3o aparece os posts e nem a single. olha c\u00f3digo abaixo:<\/p>\n<pre><code>&lt;?php get_header();?&gt;\n    &lt;div id=&quot;single&quot;&gt;\n        &lt;?php if (have_posts()): while (have_posts()) : the_post();?&gt;\n\n          &lt;span class=&quot;titulo&quot;&gt;&lt;?php the_title();?&gt;&lt;\/span&gt;\n\n          &lt;?php the_content();?&gt;\n\n        &lt;?php endwhile; else:?&gt;\n        &lt;?php endif;?&gt;\n    &lt;\/div&gt;&lt;!--single--&gt;\n&lt;?php get_footer();?&gt;<\/code><\/pre>\n<p>Na page.php eu fiz a mesma coisa e funcionou. O que pode ser?<\/p>\n","protected":false},"template":"","class_list":["post-18901","topic","type-topic","status-closed","hentry","topic-tag-modelo","topic-tag-paginas"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18901","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\/18901\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}