‘written by’ functionality for wordpress

Recently I started a new blog “Spam Bots and CAPTCHAs” (will be announced later). I plan to have many authors on this blog, therefore I disliked that the blog postings were not annotated by the author names. After some investigations, I found that it was the default WordPress behaviour. The fix was simple.

Just add something like

by <?php the_author_link(); ?>

to the template files:

* archive.php
* index.php
* search.php
* single.php

There is a number of alternatives to “the_author_link“. Details are in the documentation.

Leave a Reply