par
Ryle » 23 juin 2016, 12:31
Bonjour,
La fonction the_title() semble à priori uniquement générer le code suivant :
<h6 class="uppercase mb0 color-primary"><a href="http://seutetavocats.com/?team=eric-seutet">ERIC SEUTET</a></h6><span>Avocat</span>
Il est donc normal que le lien ne s'applique pas à la photo.
Si la photo est affichée via l'appel à the_post_thumbnail(), tu peux essayer d'ajouter tes balises lien autour... :
<div class="col-md-3 col-sm-4 mb24 small-team-grid">
<?php
echo '<a href="'. get_permalink() .'">';
the_post_thumbnail('box', array('class' => 'mb24'));
echo '</a>';
the_title('<h6 class="uppercase mb0 color-primary"><a href="'. get_permalink() .'">', '</a></h6><span>'. get_post_meta($post->ID, '_ebor_the_job_title', 1) .'</span>');
get_template_part('inc/content-team','social');
?>
</div>
Le mieux étant sans doute d'adapter les fonctions à ton besoin comme l'a suggéré moogli
