Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Mensagem sobre o tópico Mostrar a imagem de um post no template

Visualizar analisado - Mostrar apenas o texto da mensagem ??

Received: by 10.103.39.17 with SMTP id r17mr8892muj.11.1244576277675;
        Tue, 09 Jun 2009 12:37:57 -0700 (PDT)
Return-Path: <caio.mancini.lis...@gmail.com>
Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com [209.85.218.215])
        by gmr-mx.google.com with ESMTP id 14si466840fxm.3.2009.06.09.12.37.56;
        Tue, 09 Jun 2009 12:37:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of caio.mancini.lis...@gmail.com designates 209.85.218.215 as permitted sender) client-ip=209.85.218.215;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of caio.mancini.lis...@gmail.com designates 209.85.218.215 as permitted sender) smtp.mail=caio.mancini.lis...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-bw0-f215.google.com with SMTP id 11so259023bwz.25
        for <wordpress-brasil@googlegroups.com>; Tue, 09 Jun 2009 12:37:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type;
        bh=fFLMn2FhMdfdeVE1iihFAT5rMWvGjujtg5t8SJNjqro=;
        b=D8RpxBW5XSrlyn1W8c7DTehMnUvq4Py2Ys2mSli6izGFmbpFInRuQVSpfjHgfFq1PB
         SsHnAtf4/Tpc6IcD7djgb9J/uWJ5aDcYHak+pBlrCIvyJ/wSGqbsNx3hrgYd/mCyRDx0
         ih/cBsF7sFCgILc7w/7icBWYIM1MEMsf4HjLw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=A9Q8aGfIhSOk3U23ZiJ88asArrtX33zm2entZYPLP73Ay4Ug7jHd+b+bSw955PEWgz
         RL5D+WNdsRQ67b9gMkvh7vuGVFcc9yaR9ZS8InBse36z4Ygb6AjRITUoRDSxUdgp3JVD
         Sj9DiUYbv+qMbIqsHvMCDZaDZKnULin/qPbH4=
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="0016364d27f1ca44bb046bef7e71"
Received: by 10.216.23.72 with SMTP id u50mr170007weu.178.1244576275383; Tue, 
	09 Jun 2009 12:37:55 -0700 (PDT)
In-Reply-To: <b5357790906050753i766d718dtd80de38d5926c24@mail.gmail.com>
References: <f311d87e0906011525o11e11873r3efb14d64b0f2...@mail.gmail.com>
	 <b5357790906050753i766d718dtd80de38d5926...@mail.gmail.com>
Date: Tue, 9 Jun 2009 16:37:55 -0300
Message-ID: <f311d87e0906091237g50d00fbbna379563192a92...@mail.gmail.com>
Subject: Re: [wordpress-brasil] Re: Mostrar a imagem de um post no template
From: Caio Mancini <caio.mancini.lis...@gmail.com>
To: wordpress-brasil@googlegroups.com

--0016364d27f1ca44bb046bef7e71
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Eu j=E1 tinha usado, mas n=E3o funcionou. Pra te falar a verdade usei uns 3
plugins que achei pela net e nenhum deles resolveu.

2009/6/5 Walter "wmoriah" Araujo dos Santos <walter.wmor...@gmail.com>

> instala o plugin getimage
>
> resolve seu problema... la na instalacao mostra como vc inserir a tag no
> template!
>
> --
> Walter Ara=FAjo dos Santos "wmoriah"
> -------------------------------------------------------------------------=
--
> CEO / Gerente de Projetos
> HAGG | Ag=EAncia Interativa
> http://www.hagg.com.br
> -------------------------------------------------------------------------=
--
> http://wmoriah.com.br
> http://meadiciona.com/wmoriah
> http://host.wmoriah.com.br
> -------------------------------------------------------------------------=
--
> 83 8828-9497 - Oi
> 83 9134-9278 - Claro
> -------------------------------------------------------------------------=
--
> Antes de imprimir pense em seu
> compromisso com o Meio Ambiente
> e o comprometimento com os Custos.
> Use como Rascunho o outro lado da
> Folha. A Natureza agradece!!!
> Use papel reciclado.
> -------------------------------------------------------------------------=
--
> Aten=E7=E3o: Se voc=EA pretende redirecionar este e-mail,
> por favor, apague todos os endere=E7os que aparecem
> nele. Outra dica de seguran=E7a =E9 endere=E7=E1-lo no Cco
> ou Cc. Desta forma voc=EA estar=E1 protegendo a mim,
> seus amigos e a voc=EA mesmo. Eu e a Campanha
> Contra o SPAM agradecemos sinceramente.'
>
>
> 2009/6/1 Caio Mancini <caio.mancini.lis...@gmail.com>
>
> Ol=E1 a todos!
>>
>> Estou criando um template para meu site, e na minha inicial trarei um
>> resumo dos principais posts. Mas um em espec=EDfico mostrarei em destaqu=
e com
>> sua imagem e o t=EDtulo.
>> Estou com dificuldades para mostrar a imagem que inseri no post.
>>
>> J=E1 usei o plugin getImage, mas n=E3o funcionou, e tentei de v=E1rias f=
ormas
>> usar a tag wp_get_attachment_image e nada.
>> Usei algo do tipo:
>>
>> <?php echo wp_get_attachment_image($post->ID,'medium'); ?>
>>
>> Mas n=E3o deu certo tamb=E9m.
>>
>> O meu c=F3digo no template est=E1 mais ou menos isso:
>>
>> <?php
>>             query_posts('showposts=3D1&tag=3Ddestaque');
>>
>>             if ( have_posts() ) : while ( have_posts() ) : the_post(); ?=
>
>>
>>                 <h2 id=3D"manchete_destaque"><a href=3D"<?php the_permal=
ink()
>> ?>" rel=3D"bookmark"><?php the_title(); ?></a></h2>
>>
>>                 <div id=3D"div_destaque">
>>                     <a href=3D=94<?php echo wp_get_attachment_url($post-=
>ID);
>> ?>=94>
>>                         <?php echo
>> wp_get_attachment_image($post->ID,'medium'); ?>
>>                     </a>
>>                     <span id=3D"leg_destaque"><?php the_excerpt(); ?></s=
pan>
>>                 </div>
>>
>>             <?php endwhile; else: ?>
>>                 <div id=3D"div_destaque">
>>                     <h4 id=3D"publi">Ops... nada publicado</h4>
>>                 </div>
>>             <?php
>>                 endif;
>>                 wp_reset_query();
>>             ?>
>>
>> Desde j=E1 agrade=E7o muito a ajuda, sou iniciante no neg=F3cio de criar=
 os
>> pr=F3prios templates.
>>
>> Grato.
>>
>>
>>
>> --
>> Caio M. S. Mancini
>> MSN: kaiou200...@yahoo.com.br
>> ICQ: 177165688
>> AIM: caiomalkavianos
>> Skype: caiomalkavianos
>> http://caiomancini.blogspot.com
>> http://avalanche.87fm.com.br
>> http://bambolequadrado.blogspot.com
>>
>>
>>
>
> >
>


--=20
Caio M. S. Mancini
MSN: kaiou200...@yahoo.com.br
ICQ: 177165688
AIM: caiomalkavianos
Skype: caiomalkavianos
http://caiomancini.blogspot.com
http://avalanche.87fm.com.br
http://bambolequadrado.blogspot.com

--0016364d27f1ca44bb046bef7e71
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Eu j=E1 tinha usado, mas n=E3o funcionou. Pra te falar a verdade usei uns 3=
 plugins que achei pela net e nenhum deles resolveu.<br><br><div class=3D"g=
mail_quote">2009/6/5 Walter &quot;wmoriah&quot; Araujo dos Santos <span dir=
=3D"ltr">&lt;<a href=3D"mailto:walter.wmor...@gmail.com">walter.wmoriah@gma=
il.com</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">instala o plugin =
getimage<br><br>resolve seu problema... la na instalacao mostra como vc ins=
erir a tag no template!<br>
<br clear=3D"all">--<br>Walter Ara=FAjo dos Santos &quot;wmoriah&quot;<br>-=
--------------------------------------------------------------------------<=
br>

CEO / Gerente de Projetos<br>HAGG | Ag=EAncia Interativa<br><a href=3D"http=
://www.hagg.com.br" target=3D"_blank">http://www.hagg.com.br</a><br>-------=
--------------------------------------------------------------------<br><a =
href=3D"http://wmoriah.com.br" target=3D"_blank">http://wmoriah.com.br</a><=
br>


<a href=3D"http://meadiciona.com/wmoriah" target=3D"_blank">http://meadicio=
na.com/wmoriah</a><br><a href=3D"http://host.wmoriah.com.br" target=3D"_bla=
nk">http://host.wmoriah.com.br</a><br>-------------------------------------=
--------------------------------------<br>


83 8828-9497 - Oi<br>83 9134-9278 - Claro<br>------------------------------=
---------------------------------------------<br>Antes de imprimir pense em=
 seu<br>compromisso com o Meio Ambiente<br>e o comprometimento com os Custo=
s.<br>


Use como Rascunho o outro lado da<br>Folha. A Natureza agradece!!!<br>Use p=
apel reciclado.<br>--------------------------------------------------------=
-------------------<br>Aten=E7=E3o: Se voc=EA pretende redirecionar este e-=
mail,<br>


por favor, apague todos os endere=E7os que aparecem<br>nele. Outra dica de =
seguran=E7a =E9 endere=E7=E1-lo no Cco<br>ou Cc. Desta forma voc=EA estar=
=E1 protegendo a mim,<br>seus amigos e a voc=EA mesmo. Eu e a Campanha<br>C=
ontra o SPAM agradecemos sinceramente.&#39;<br>



<br><br><div class=3D"gmail_quote">2009/6/1 Caio Mancini <span dir=3D"ltr">=
&lt;<a href=3D"mailto:caio.mancini.lis...@gmail.com" target=3D"_blank">caio=
.mancini.lis...@gmail.com</a>&gt;</span><div><div></div><div class=3D"h5"><=
br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(20=
4, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Ol=E1 a todos!<br><br>Estou criando um template para meu site, e na minha
inicial trarei um resumo dos principais posts. Mas um em espec=EDfico
mostrarei em destaque com sua imagem e o t=EDtulo.<br>Estou com dificuldade=
s para mostrar a imagem que inseri no post.<br>
<br>J=E1 usei o plugin getImage, mas n=E3o funcionou, e tentei de v=E1rias =
formas usar a tag wp_get_attachment_image<span style=3D"color: rgb(0, 153, =
0);"></span>
 e nada.<br>Usei algo do tipo:<br><br style=3D"font-family: courier new,mon=
ospace; color: rgb(0, 0, 0);"><font style=3D"font-family: courier new,monos=
pace; color: rgb(0, 0, 0);" size=3D"2">&lt;?php echo wp_get_attachment_imag=
e($post-&gt;ID,&#39;medium&#39;); ?&gt;</font><br>




<br>Mas n=E3o deu certo tamb=E9m.<br><br>O meu c=F3digo no template est=E1 =
mais ou menos isso:<br><br><span style=3D"font-family: courier new,monospac=
e;">&lt;?php</span><br style=3D"font-family: courier new,monospace;"><span =
style=3D"font-family: courier new,monospace;">=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=
 query_posts(&#39;showposts=3D1&amp;tag=3Ddestaque&#39;);</span><br style=
=3D"font-family: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 </span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 if (=
 have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;</span><br styl=
e=3D"font-family: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0 =A0=A0=A0 </s=
pan><br style=3D"font-family: courier new,monospace;"><span style=3D"font-f=
amily: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0 =A0=A0=A0 &lt;h2 id=3D&quot;manchete_destaque&quot;&gt;&lt;a href=
=3D&quot;&lt;?php
the_permalink() ?&gt;&quot; rel=3D&quot;bookmark&quot;&gt;&lt;?php the_titl=
e();
?&gt;&lt;/a&gt;&lt;/h2&gt;</span><br style=3D"font-family: courier new,mono=
space;">
<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0 <=
/span><br style=3D"font-family: courier new,monospace;"><span style=3D"font=
-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 &lt;div id=3D&quot;div_destaque&quot;&gt;</span><br style=3D"font-famil=
y: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;a href=3D=94&lt;?php echo wp_get_a=
ttachment_url($post-&gt;ID); ?&gt;=94&gt;</span><br style=3D"font-family: c=
ourier new,monospace;"><span style=3D"font-family: courier new,monospace;">=
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 </span><font st=
yle=3D"font-family: courier new,monospace; color: rgb(0, 0, 0);" size=3D"2"=
>&lt;?php echo wp_get_attachment_image($post-&gt;ID,&#39;medium&#39;); ?&gt=
;</font><br style=3D"font-family: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;/a&gt;</span><br style=3D"font-fam=
ily: courier new,monospace;"><span style=3D"font-family: courier new,monosp=
ace;">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;span id=
=3D&quot;leg_destaque&quot;&gt;&lt;?php the_excerpt(); ?&gt;&lt;/span&gt;</=
span><br style=3D"font-family: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 &lt;/div&gt;</span><br style=3D"font-family: couri=
er new,monospace;"><span style=3D"font-family: courier new,monospace;">=A0=
=A0=A0=A0=A0=A0=A0 </span><br style=3D"font-family: courier new,monospace;"=
>




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0 =
=A0=A0=A0 &lt;?php endwhile; else: ?&gt;</span><br style=3D"font-family: co=
urier new,monospace;"><span style=3D"font-family: courier new,monospace;">=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;div id=3D&quot;div_destaq=
ue&quot;&gt;</span><br style=3D"font-family: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;h4 id=3D&quot;publi&quot;&gt;Ops..=
. nada publicado&lt;/h4&gt;</span><br style=3D"font-family: courier new,mon=
ospace;"><span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;/div&gt;</span><br style=3D"font-fami=
ly: courier new,monospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 &lt;?php</span><br style=3D"font-family: courier new,monospace;"><sp=
an style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 endif;</span><br style=3D"font-family: courier new,mo=
nospace;">




<span style=3D"font-family: courier new,monospace;">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 wp_reset_query();</span><br style=3D"font-family: =
courier new,monospace;"><span style=3D"font-family: courier new,monospace;"=
>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ?&gt;</span><br style=3D"font-family: co=
urier new,monospace;">




<br>Desde j=E1 agrade=E7o muito a ajuda, sou iniciante no neg=F3cio de cria=
r os pr=F3prios templates.<br><br>Grato.<br><font color=3D"#888888"><br></f=
ont><br clear=3D"all"><br>-- <br>Caio M. S. Mancini<br>MSN: <a href=3D"mail=
to:kaiou200...@yahoo.com.br" target=3D"_blank">kaiou200...@yahoo.com.br</a>=
<br>



ICQ: 177165688<br>AIM: caiomalkavianos<br>Skype: caiomalkavianos<br><a href=
=3D"http://caiomancini.blogspot.com" target=3D"_blank">http://caiomancini.b=
logspot.com</a><br><a href=3D"http://avalanche.87fm.com.br" target=3D"_blan=
k">http://avalanche.87fm.com.br</a><br>



<a href=3D"http://bambolequadrado.blogspot.com" target=3D"_blank">http://ba=
mbolequadrado.blogspot.com</a><br><br>
<br>
</blockquote></div></div></div><br>
<br>
<br>
</p></blockquote></div><br><br clear=3D"all"><br>-- <br>Caio M. S. Mancini<=
br>MSN: <a href=3D"mailto:kaiou200...@yahoo.com.br">kaiou200...@yahoo.com.b=
r</a><br>ICQ: 177165688<br>AIM: caiomalkavianos<br>Skype: caiomalkavianos<b=
r>
<a href=3D"http://caiomancini.blogspot.com">http://caiomancini.blogspot.com=
</a><br><a href=3D"http://avalanche.87fm.com.br">http://avalanche.87fm.com.=
br</a><br><a href=3D"http://bambolequadrado.blogspot.com">http://bambolequa=
drado.blogspot.com</a><br>

<style></style>

--0016364d27f1ca44bb046bef7e71--


Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2009 Google