Comment relier Avatar et surnom au profil
Question
Sur la page de messagerie unique, je souhaite lier la fonction Avatar au profil de l'auteur, mais j'ai essayé
<a href="<?php the_author_posts_link(); ?>">
<img src="<?php echo get_avatar($post->post_author, '64', $avatar); ?>">
</a>
Mais cela ne fonctionne pas.
De plus, comment puis-je afficher le surnom (nom d'affichage) tout en liant le profil, le code suivant donne un lien étrange et 404S
<a href="<?php echo get_author_posts_url(); ?>"><?php the_author_nickname(); ?></a>
Une aide serait grandement appréciée. Merci
Pas de solution correcte
Licencié sous: CC-BY-SA avec attribution
Non affilié à wordpress.stackexchange