A plugin providing template tags to list all active (or inactive) authors in the WordPress installation.
<?php list_active_authors( 'days=30&include_protected_posts=0' ); ?> Will list all the authors active in the last 30 days, not counting password protected posts as "activity". Both parameters are optional.
<?php list_inactive_authors( 'days=30&include_protected_posts=0' ); ?> Will list all the authors NOT active in the last 30 days, counting password protected posts as "activity". Again, both parameters are optional.
If “days” are not provided the tags default to the last 30 days.
If “include_protected_posts” is not specified, the tags default to not including password protected posts.
The HTML output is fairly heavily classed, but if you need to adapt it you can. Create a directory in your theme called “view”, and a directory within that one called “author-listings”. Then copy the template files view/author-listings/active-authors-list.php and/or view/author-listings/inactive-authors-list.php from the plugin directory into your theme directory and amend as you need. If these files exist in these directories in your theme they will override the ones in the plugin directory. This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven’t changed any files in it. All hail John Godley for the code which allows this magic to happen. Can hook into the User Photo plugin to display the author photos.
Plugin initially produced on behalf of Puffbox.
Is this plugin lacking a feature you want? I’m happy to accept offers of feature sponsorship: contact me and we can discuss your ideas.
Any issues: contact me.
Download
Latest version: Download Author Listing v1.02 [zip]
Installation
The plugin is simple to install:
- Download
author-listings.zip - Unzip
- Upload
author-listingsdirectory to your/wp-content/pluginsdirectory - Go to the plugin management page and enable the plugin
- Give yourself a pat on the back
Changelog
v0.1b 2008/08/18
- Plugin first sees the light of day.
v0.2b 2008/08/19
- Added more templating functions for the latest posts
- Revised the excerpt generation functions
v0.3b 2008/08/20
- Added template methods to hook into the User Photo plugin
v0.4b 2008/10/04
- Cleaned up the documentation, general housekeeping
v1.0 2008/10/09
- First stable release!
v1.01 2008/11/27
- BUGFIX: Previously if you listed inactive authors after having listed active authors, then all authors in the site would be listed (regardless of activity). This is now fixed.
v1.02 2008/11/27
- BUGFIX: I left some error logging active in the plugin. This release removes it.
Hi Simon.
I’ve just installed your plugin for WP: the Author List.
I wantet my “about”-page to contain a list of alle the authors there is on the site.
I’ve tried to copypaste the php-code into the “about”-page via the HTML-editor, but nothing appears…?
I think I might be doing this the wrong way – or do you know, what the problem might be?
I hope it can be fixed, because it seems like this is the answer for my issue of listing all authors dynamically on the “about”-page…
This is the about-page:
http://lineofbeauty.dk/om/
(I’m sorry – the site is in danish, I hope you can help me anyway…?)
The very kindest regards,
Sandie Sørensen
Hi Sandie. The PHP code won’t work in a post, you need to use it as a Template Tag in a WordPress page template. Good luck!
Ah, because it needs to be “included” into an php-document? I think I get it. Thanks…
Hello,
Your plugin is working together with ‘user photo’ but without the author has uploaded his photo I thought the avatar should be shown. There is only a dot. The boring thing came after I activated ‘user photo’. First I had an error so that the index page wasn’t shown. Then in the user photo configuration I unchecked ‘Serve Avatar as Fallback’ and ‘Override Avatar with User Photo’. After that I got my index.php back. But except for the remark that ‘User Photo’ isn’t activated disappeared, nothing has changed thus.
Further as I have a quite long list of authors I also need a pagination. How to combine this with the plugin ‘author-listing’ please? Even without excerpts, so I would like to exclude them because there is already an authorpage with listing of their posts.
Thanks.