Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/06/2009, 19:29
Avatar de konoyek
konoyek
 
Fecha de Ingreso: julio-2007
Mensajes: 268
Antigüedad: 16 años, 10 meses
Puntos: 0
De acuerdo Respuesta: Codigo Html en php

listo ya tengo el codigo por un 90% ya que me hace falta que el link que muestre los vincule al permalink

el codigo es el siguiente:


Código PHP:
<? $url $_SERVER["REQUEST_URI"];
           echo 
$url;
           
           if (
$url == "/?cat=5") {
              
           
$recent = new WP_Query("cat=5&showposts="); while($recent->have_posts()) : $recent->the_post();
           
          echo 
"<a href='".the_permalink()."' rel='bookmark'><div align='center'><img style='margin:0px 10px 10px 0px;' src='".get_post_meta($post->ID'Thumbnail'true)."' alt='".get_post_meta($post->ID'Theme Name'true)."' Imagen' width='250' height='115' /></div></a>\n";
           endwhile; 
           }
           else  {
           echo 
"ok" ;
           }

           
           
?>
automaticamente el Thumbnail no queda vinculado al The_permalink