Buscar o Conteudo link do Post por Query!
-
Pessoal estou com um pequeno problema!!
Eu tenho uma categoria onde eu coloquei “banners” de parceiros e la quero colocar todos os banner + repsectivos links
Como seria essa minha query?
Dessa Forma esta funcionando e a imagem está vindo sem problemas, o negócio é que ele não traz o
<a href>
da imagem..<?php $my_query = new WP_Query('cat=258&showposts=1'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <img src="http://www.meusite.com.br/phpThumb.php?src=<?php get_the_image( array( 'custom_key' => array( 'Thumb', 'xxx' ), 'default_size' => 'thumbnail', 'link_to_post' => false ) ); ?>&fltr=gray" id="Image111" width="468" height="60" onmouseover="MM_swapImage('Image111','','<?php get_the_image( array( 'custom_key' => array( 'Thumb', 'xxx' ), 'default_size' => 'thumbnail', 'link_to_post' => false ) ); ?>',0)" onmouseout="MM_swapImgRestore()" onmouseout="MM_swapImgRestore()">
Visualizando 2 respostas - 1 até 2 (de um total de 2)
Visualizando 2 respostas - 1 até 2 (de um total de 2)
- O tópico ‘Buscar o Conteudo link do Post por Query!’ está fechado para novas respostas.