{"id":23,"date":"2008-09-28T02:13:12","date_gmt":"2008-09-28T02:13:12","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/ajuda-dos-mestres-help\/"},"modified":"2016-08-06T01:06:21","modified_gmt":"2016-08-06T01:06:21","slug":"ajuda-dos-mestres-help","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/ajuda-dos-mestres-help\/","title":{"rendered":"Problemas com link da postagem na p\u00e1gina inicial"},"content":{"rendered":"<p>Oi amigos,<\/p>\n<p>Estou com um problema onde n\u00e3o encontro solu\u00e7\u00e3o porque n\u00e3o entendo absolutamente nada de PHP. Costumo me acertar mais por tentativa e erro e lendo o que consigo encontrar na Internet, mas nesse caso, desisiti. :-\/<\/p>\n<p>Tenho em uma p\u00e1gina o c\u00f3digo abaixo. Ele roda com o plugin Exec PHP para habilitar c\u00f3digos PHP dentro de uma p\u00e1gina e tamb\u00e9m tem o plugin Similar Posts, mas esse \u00faltimo n\u00e3o interfere em nada j\u00e1 que tirando o c\u00f3digo dele (Entrada 1) nada muda. <\/p>\n<p>O c\u00f3digo mostra em uma p\u00e1gina:<\/p>\n<p>1- Meus \u00faltimos posts (Entrada 1)<br \/>\n2- O resumo do \u00faltimo post da Categoria &#8220;Destaque&#8221; (Entrada 2)<br \/>\n3- O resumo do \u00faltimo post da Categoria &#8220;Veja&#8221; (Entrada 3) <\/p>\n<p><strong>O problema:<\/strong> A entrada 3  fica com a data com o link do post da entrada 1, o &#8220;Leia Mais&#8221; idem, e no Internet Explorer cria um link no primeiro texto da Coluna 1 que \u00e9 Login\/Registro. Se eu desabilitar o &#8220;Leia Mais&#8221; nas entradas tudo funciona normal, embora eu perca esse link. Para melhor visualizar o problema acessem <a href=\"http:\/\/www.miguel-netto.com\">http:\/\/www.miguel-netto.com <\/a>. <\/p>\n<p>Se algu\u00e9m puder me ajudar segue abaixo o c\u00f3digo que est\u00e1 em uma p\u00e1gina habilitada para abrir na p\u00e1gina inicial. J\u00e1 agrade\u00e7o antecipadamente. <\/p>\n<pre><code>&lt;!-- Ultimos posts (Entrada 1) --&gt;\n\n&lt;div class=&quot;Destaque&quot;&gt;\n&lt;p&gt;\u00daLTIMAS POSTAGENS:&lt;\/p&gt;\n\n&lt;ul&gt;\n&lt;?php\n$aRecentPosts = new WP_Query(&quot;showposts=5&quot;); \/\/ N\u00famerode posts recentes a se exibido \/\/\nwhile($aRecentPosts-&gt;have_posts()) : $aRecentPosts-&gt;the_post();?&gt;\n&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;Link para &lt;?php the_title(); ?&gt; &quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title();?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endwhile; ?&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;\n\n&lt;!-- Destaque  (Entrada 2) --&gt;\n\n&lt;div class=&quot;Destaque&quot;&gt; \n\n\t&lt;?php $my_query = new WP_Query(&#039;category_name=Destaque&amp;showposts=1&#039;);\/\/Selecionada a categoria Destaque em category_name\/\/\n\twhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();\n\t$do_not_duplicate = $post-&gt;ID; ?&gt;\n\n\t\t\t\t\t&lt;div class=&quot;datacapa&quot;&gt;\n\t\t\t\t\t\t&lt;span&gt;&lt;?php the_time(&#039;d&#039;) ?&gt;&lt;\/span&gt;\n\t\t\t\t\t\t&lt;?php the_time(&#039;M&#039;) ?&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\t\n\n\t&lt;div class=&quot;fentry&quot;&gt;\n\n\t&lt;?php the_content(&#039;Continue lendo \u00bb&#039;); ?&gt;\n&lt;\/div&gt;\n&lt;!-- O problema --&gt;\n\t&lt;div class=&quot;featmeta&quot;&gt; &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;Leia mais \u00bb&lt;\/div&gt;\n                                                                  &lt;!-- O problema --&gt;\n\n\t&lt;?php endwhile; ?&gt;\n\n\t&lt;\/div&gt;\n&lt;!-- Fim Destaque  (Entrada 2) --&gt;\n\n&lt;!-- Veja (Entrada 3) --&gt;\n\n&lt;div class=&quot;Destaque&quot;&gt; \n\n\t&lt;?php $my_query = new WP_Query(&#039;category_name=Veja&amp;showposts=1&#039;);\/\/Selecionada a categoria Veja em category_name\/\/\n\twhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();\n\t$do_not_duplicate = $post-&gt;ID; ?&gt;\n\n&lt;!--&lt;div class=&quot;datacapa&quot;&gt;--&gt;\n\t\t\t\t\t&lt;div class=&quot;datacapa&quot;&gt;\n\t\t\t\t\t\t&lt;span&gt;&lt;?php the_time(&#039;d&#039;) ?&gt;&lt;\/span&gt;\n\t\t\t\t\t\t&lt;?php the_time(&#039;M&#039;) ?&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;!--&lt;\/div&gt;--&gt;\n\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\t\n\n\t&lt;div class=&quot;fentry&quot;&gt;\n\n\t&lt;?php the_content(&#039;Continue lendo \u00bb&#039;); ?&gt;\n&lt;\/div&gt;\n\n\t&lt;!-- O problema --&gt;\n\t&lt;div class=&quot;featmeta&quot;&gt; &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;Leia mais \u00bb&lt;\/div&gt;\n                                                                  &lt;!-- O problema --&gt;\n\n\t&lt;?php endwhile; ?&gt;\n\n\t&lt;\/div&gt;\n&lt;!-- Fim Veja (Entrada 3) --&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-23","topic","type-topic","status-closed","hentry","topic-tag-query","topic-tag-tema"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/23","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\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}