Mostrar información del autor en un post en WordPress

El script tiene que ir dentro de loop al final en el archivo single.php


<div id="author">

<div id="avatar">

<a href="<?php the_author_meta('user_url'); ?>"><?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?></a>

</div>

<div id="descripcion">

<p>Autor: <?php the_author_link(); ?></p>

<p><?php the_author_meta('description'); ?></p>

</div>

</div>

y los estilos son:


#author { background: #eaeaec; padding: 10px; margin: 0 0 15px 0;overflow: auto;}

#author .author{font-size:14px;}

#author #avatar { float: left; margin: 0 10px 5px 0; border: 5px solid #DCDCE1; }

#author #descripcion h3{margin:0;}

Leave a Comment


*


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks and Pingbacks: