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/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.
The plugin is simple to install:
author-listingsdirectory to your
- Go to the plugin management page and enable the plugin
- Give yourself a pat on the back
There are no reviews for this plugin.
Contributors & Developers
“Author Listing” is open source software. The following people have contributed to this plugin.Contributors
- Plugin first sees the light of day.
- Added more templating functions for the latest posts
- Revised the excerpt generation functions
- Added template methods to hook into the User Photo plugin
- Cleaned up the documentation, general housekeeping
- First stable release!
- 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.
- BUGFIX: I left some error logging active in the plugin. This release removes it.