Éditer le fichier « single.php » du thème WordPress. Puis, par exemple au-dessus du code PHP qui insère les liens de navigation horizontale, insérer le code suivant :
<?php
$myLstCat = (array) get_the_category(intval(get_the_ID()));
if (count($myLstCat) >= 1) {
$myCat = &$myLstCat[0];
$myCatLabel = $myCat->cat_name;
$myCatLink = get_category_link(intval($myCat->cat_ID));
?>
<div class="nav-to-cat">
<a href="<?php echo $myCatLink; ?>"><?php echo $myCatLabel; ?></a>
</div>
<?php
}
?>
Un lien vers la catégorie parente de l’article apparaît désormais dans la page de l’article.