the_author_meta example

while ( have_posts() ) :
        the_post();
        ?> <entry> <author> <name><?php the_author(); ?></name> <?php             $author_url = get_the_author_meta( 'url' );
            if ( ! empty( $author_url ) ) :
                ?> <uri><?php the_author_meta( 'url' ); ?></uri> <?php             endif;

            /** * Fires at the end of each Atom feed author entry. * * @since 3.2.0 */
            do_action( 'atom_author' );
            ?> </author> <title type="
<?php echo get_avatar( get_the_author_meta( 'ID' ), '85' ); ?> <div class="author-bio-content"> <h2 class="author-title"> <?php             printf(
                /* translators: %s: Author name. */
                esc_html__( 'By %s', 'twentytwentyone' ),
                get_the_author()
            );
            ?> </h2><!-- .author-title --> <p class="author-description"> <?php the_author_meta( 'description' ); ?></p><!-- .author-description --> <?php             printf(
                '<a class="author-link" href="%1$s" rel="author">%2$s</a>',
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                sprintf(
                    /* translators: %s: Author name. */
                    esc_html__( 'View all of %s\'s posts.', 'twentytwentyone' ),
                    get_the_author()
                )
            );
            ?>


/** * Display the description of the author of the current post. * * @since 1.0.0 * @deprecated 2.8.0 Use the_author_meta() * @see the_author_meta() */
function the_author_description() {
    _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'description\')' );
    the_author_meta('description');
}

/** * Retrieve the login name of the author of the current post. * * @since 1.5.0 * @deprecated 2.8.0 Use get_the_author_meta() * @see get_the_author_meta() * * @return string The author's login name (username). */
Home | Imprint | This part of the site doesn't use cookies.