Quantcast
Viewing latest article 19
Browse Latest Browse All 24

Answer by Matthias Pfefferle for Getting the author name on author archive page inside WordPress

WordPress supports an archive template for that. You simply have to add an author.php file to your theme folder: http://codex.wordpress.org/Author_Templates

And than you can use all author functions like:

  • get_the_author() for the author name
  • get_the_author_meta('description') for the description
  • get_avatar( get_the_author_meta('ID'), 40 ) for the avatar
  • ...

There are also archives for categories (http://codex.wordpress.org/Category_Templates) and Tags (http://codex.wordpress.org/Tag_Templates) btw.


Viewing latest article 19
Browse Latest Browse All 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>