This page redirects to an external site: https://developer.wordpress.org/reference/functions/the_author_url/
Page d'accueil du Codex en français - Télécharger WordPress en français
Les utilisateurs francophones se retrouvent sur le site WordPress-Francophone, notamment sur son forum d'entraide.
Ce marqueur affiche l'URL (en anglais) du site web de l'auteur de l'article. Le champ Site web (Website) est défini dans le profil utilisateur (Administration > Utilisateurs > Votre Profil (en anglais)). Ce marqueur doit être utilisé à l'intérieur de la Boucle.
<?php the_author_url(); ?>
Displays the author's URL as a link and the link text. Affiche l'URL de l'auteur en tant que lien et comme texte du lien.
<p>Site web de l'auteur :<a href="<?php the_author_url(); ?>"><?php the_author_url(); ?></a></p>
Ce qui s'affiche comme suit :
Cet exemple affiche le nom de l'auteur comme un lien vers le site de l'auteur. Veuillez noter que cet exemple utilise la fonction get_the_author_url() pour vérifier si l'utilisateur a saisi une URL dans son profil.
<?php
if (get_the_author_url())
{
?>
<a href="<?php the_author_url(); ?>"><?php the_author(); ?></a>
<?php
}
else
{
the_author();
}
?>
Ce marqueur n'accepte aucun argument.
the_author, the_author_description, the_author_login, the_author_firstname, the_author_lastname, the_author_nickname, the_author_ID, the_author_email, the_author_url, the_author_icq, the_author_aim, the_author_yim, the_author_msn, the_author_posts, the_author_posts_link, list_authors, wp_list_authors