Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Why is there an author.php file when the same information is in the single.php? I looked at the template hierarchy and one would think that if author.php wasn't present, the single.php would come into play but it doesn't. I would also think that if you styled the author.php then that would affect the author bio on the pages, but it doesn't. So I was thinking about just removing the author bio all together. Maybe make it a function and call it in my page. What do you think?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

From the Codex:

...when a viewer clicks on a link to a post author, by default he or she is taken to a page listing the posts from that particular author in chronological order, from newest posts at the top to oldest at the bottom.

In other words, the author template is used to show posts made by one person as well as their bio (if so configured). Whether or not to use it is up you, so go ahead and remove it if you want or if you are the only author.

share|improve this answer
add comment

Author.php is part of the Archive.php hierarchy.

It goes:

author-$nicename.phpauthor-$idauthor.phparchive.phpindex.php

Single.php is what it's name suggests and is related to posts, custom posts and attachments.

enter image description here

Larger version: http://debugggg.files.wordpress.com/2012/04/lgk541.png

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.