Ver Mensaje Individual
  #15 (permalink)  
Antiguo 23/03/2011, 11:10
Avatar de rogertm
rogertm
Mod->Cuba
 
Fecha de Ingreso: julio-2005
Ubicación: /home/Cuba/Habana/rogertm/
Mensajes: 2.922
Antigüedad: 18 años, 9 meses
Puntos: 638
Respuesta: Editar código que genera miniaturas en la entrada

Si te fijas, no estás usando the_post_thumbnail() en ningún lugar, lo que estás haciendo es poniendo un nombre a un id para que te identifique el post en cuestión, osea, estás modificando en html.

La linea 13 déjala hasta el cierre del h3:
Código PHP:
Ver original
  1. <h3 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
y a continuación, en la linea 14 pones esto
Código PHP:
Ver original
  1. <?php
  2. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  3.   the_post_thumbnail();
  4. }
  5. ?>
Y luego the_content()... Al final debe quedarte algo así:
Código PHP:
Ver original
  1. <h3 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
  2. <?php
  3. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  4.   the_post_thumbnail();
  5. }
  6. the_content();
  7. ?>

Fíjate que he cambiado en el título, la disposición de las etiquetas a y h3: antes era <a><h3>... </h3></a>, ahora es <h3><a>... </a></h3>, lo cual es solo cuestión de organizar bien tu código
__________________
Friki y Blogger por Cuenta Propia:213
Twenty'em: Theming is Prose