¿Cuál es la mejor manera de usar <?php the_post_thumbnail();?>
en mi bucle PERO solo muestra una miniatura en la PRIMERA publicación? Es decir, ¿solo la primera publicación en el bucle tendrá su imagen mostrada?
Aquí hay un ejemplo de un bucle que muestra la imagen de TODAS las publicaciones:
<!-- Start the Loop. -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Display the Title as a link to the Post's permalink. -->
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!-- Display the posts Image thumbnail for the post -->
<?php the_post_thumbnail();?>
<!-- Display the date and a link to other posts by this posts author. -->
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
<!-- Display the Post's Content in a div box. -->
<div class="entry">
<?php the_content(); ?>
</div>
¡Gracias!