Le code pour faire pointer la miniature de l’image à la une vers l’image originale. Ici, la miniature sera en plus centrée.
Code
<?php $imageData = wp_get_attachment_image_src(get_post_thumbnail_id ( $post_ID ), 'full'); ?> <a href="<?php echo $imageData[0]; ?>"/> <?php the_post_thumbnail( 'thumbnail', array( 'class' => 'aligncenter' ) );?> </a>