该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Author Listing

描述

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.

安装

The plugin is simple to install:

  1. Download author-listings.zip
  2. Unzip
  3. Upload author-listings directory to your /wp-content/plugins directory
  4. Go to the plugin management page and enable the plugin
  5. Give yourself a pat on the back

评价

此插件暂无评价。

贡献者及开发者

“Author Listing” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Author Listing”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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.