This plugin shows a specific page for each author, showing the number of posts published and some of the data entered in the Wordpress admin section, i.e. URL, AIM ICQ number, etc... except email! But it can provide a contact form that will send an email to the author's address.
You can use it as an 'About' page for a personnal weblog or to give each author their own page in a collaborative blog.
To install it, download the source code and save it in a php file or get the gzip file and unpack it.
Upload the resulting file to your wp-content/plugins directory and activate it from the admin interface.
To use it put the author() function in you index.php template, where it normally shows the message that there are no posts.
In the default template, it looks like this:
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
Replace this by :
<?php endforeach; else: ?>
<?php author(true, 5); ?>
<?php endif; ?>
The first optionnal boolean parameter gives you the opportunity to show or hide a contact form for the author. Defaults to 'true' (show the form).
In version 0.2+, the second parameter is an integer an defines the number of latest posts to show. The default is '0'. You may want to change some of the text in the plugin file to your own language.
To do a link to the author page, you have to do something like this:
<a href="index.php?author_name=<?php the_author_login(); ?>">
<?php the_author(); ?></a>
if you do not wish to or can't use rewrite rules.
On this site, I use the following rewrite rule:
RewriteRule ^about/? /index.php?author_name=jonathan [QSA]
With a link to the 'About' page simply like this :
<a href="/about/">About</a>
On a multiuser blog, you could do this:
RewriteRule ^author/?(.*)/? /index.php?author_name=$1 [QSA]
and so the link to the page is like this:
<a href="/author/<?php the_author_login(); ?>
<?php the_author(); ?></a>
Version 0.3+ use native Wordpress functions to display the author data, making it more compatible (I hope) with future versions of Wordpress.

30 comments about 'Author page wordpress plugin'
Get the comments feed for this entry or post a trackback from your own blog
Hi! I just tried your Plugin, but it says Call to undefined function: lp() in .../author.php on line 130
Should I have that function, or what is missing?
No, sorry, it was my fault because I just installed the language_picker plugin and modified the author plugin to use it. Download it again now and you should be all right.
I have 2 things.. First you have an error on " <?php endforeach; else: ?> <?php author(true, 5); ?> <?php endif; ?>" it should be " <?php endforeach; else: ?> <?php author(true, 5); ?> <?php endif; ?>" cuz when i changed it it didnt work (messed up my site) about an hour of lookin later i figured it out (basic php! lol)
2
I can not get the multi user blog working.. How will i do that i am confused wit ur instructions .. sry
ok, i have it partially set up... i have it to where you go to /author/admin or sk8er_boy111200 so i my mod rewrite i have
RewriteRule ^author/?(.*)/? /index.php?author_name=$1 [QSA] RewriteRule ^author/?(.*)/? /index.php?author_name=$6 [QSA] but then i wanna put a link to the 2 others i tried but i dont get how the link works...?
No, in your .htacces, you only need this one line:
and then the link to the author page is author/admin or author/sk8er_boy111200 or author/mylogin, where mylogin is your login name (the one you type to enter the admin interface). You can get it with the
template tag.
Very nice! Now it works!
When I use this plugin (I followed everything) and bring up the page with the author profile (/index.php?author_name=Oleg) I just get a huge page with all plog entries posted ever.
What am I doing wrong?
Is 'Oleg" your actual login? Capitalization is important as well.
SOlved the problem. It was that you cannot have your login name as your post name or something. I just use anything but "Oleg" (even tried non caps) and it works fine. Weird bug.
Thanks.
if I click on /index.php?author_name=admin the plugin works fine. if I click on other authors names I receive back their posts. I tried to change post names with other different form the login one (as oleg seems to soggest), but it doesn't work :(
Hi, Could you give me the names of your other authors? I could only see your name on the posts I viewed.
http://www.zuppah.it/index.php?author_name=luca this is the second autor! (I created other identities but I have to update my database to import old posts)
hi! I see you tested an alternative link for the second author. I'm using that to generate the page by a direct link. thanks for the idea ;), even if I can't use it in the loop, I can create the author pages!
I keep trying to install this plugin, but whenever i edit the
section in my index, i get the following error upon loading the page.
ack?
Hi, Are you sure you deleted the endforeach that was already there? Did you do any other mods to the default template?
hi,
very nice plug, but I have a lot of problems with other function. for example my PDF plug says
Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d108829608/htdocs/beta/wp-content/plugins/autor.php:248) in /homepages/27/d108829608/htdocs/beta/wp2pdf/wp2pdf.php on line 389
there are also problem in the admin area (change templates) etc.
Hi, It's because you have a space either at the end or at the beginning of the author plugin file. Remove it and everything should be all right.
uuupps - thanks! it works fine, but now I guess , I have the same problem as zuppah :)) - It only displays a page for the admin. On sites of the other authors are just their articles....
PS: your software told me, I have a bad karma - well I know... Bu how ever: this is the third time I try to send a message.
Yeah, pretty bad karma it seems... It was sent in moderation for whatever reason...
Weird problem, I don't have a clue what could be causing it. It's true that this plugin is quite messy though.
Using Wordpress 1.5. Getting error:
No clue why, gone over everything a million times. Thanks in advance.
Eric, I guess it's because they changed the 'foreach' in 'while' in the code given in the post, replace 'endforeach' by 'endwhile and you should be all right.
I've got it working kind of, It will show the posts for mulitple authors but I can't get a profile page... am I doing something obviously wrong?
Christopher,
I don't know if you're doing anything wrong... Which version of wordpress are you using?
Same problem as Christopher. I use 1.5 (Maybe it is because of the same url-adresses index.php?author_name=Authorname ->it is normally for the author archives? )
Christopher and roland,
Yes the problem is that this plugin was designed for WP 1.2, and I'm not surprised it doesn't work with 1.5.
You can try one thing, though, and that is change all the $author_name variables to $author_page or whatever in the plugin file and in the .htaccess (if you have one). I don't guarantee anything, but it's worth giving it a try.
Hi, great script, great idea... but has anybody still solved the problem, that only the admin-profil is shown? On the pages of the other authors the script only displays a list of their articles...
PS: I still use WP 1.2.2 (too much trouble with updateing my over-customized system ;-)))
Won't show authors page and I don't know why!