[wordpress插件] Author Listing作者列表

wordpress 插件 文章 2020-02-23 16:30 575 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

A plugin providing template tags to list all active (or inactive) authors in the WordPress installation.

一个提供模板标签的插件,用于列出WordPress安装中的所有活跃(或非活跃)作者。

  <?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".

?>将列出过去30天内所有活动的作者,而不将受密码保护的帖子计为“活动”。

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".

?>将列出过去30天内未处于活动状态的所有作者,将受密码保护的帖子视为“活动”。

Again, both parameters are optional.

同样,两个参数都是可选的。

If “days” are not provided the tags default to the last 30 days.

如果未提供“天”,则标签默认为最近30天。

If “include_protected_posts” is not specified, the tags default to not including password protected posts.

如果未指定“ include_protected_posts”,则标签默认不包含受密码保护的帖子。

The HTML output is fairly heavily classed, but if you need to adapt it you can.

HTML输出的分类相当严格,但是如果需要对其进行调整,则可以。

Create a directory in your theme called “view”, and a directory within that one called “author-listings”.

在您的主题中创建一个名为“ view”的目录,并在其中创建一个名为“ 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

然后从以下位置复制模板文件 view / author-listings / active-authors-list.php 和/或 view / author-listings / inactive-authors-list.php

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.

如果这些文件存在于主题的这些目录中,则它们将覆盖plugin目录中的文件。

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.

所有为 John Godley 所写的代码都使这种魔术发生了。

Can hook into the User Photo plugin to display the author photos.

可以插入用户照片插件以显示作者照片。

Plugin initially produced on behalf of Puffbox.

插件最初是代表 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. 下载 author-listings.zip

    3. Unzip
    4. 解压缩

    5. Upload author-listings directory to your /wp-content/plugins directory
    6. author-listings 目录上传到您的 / wp-content / plugins 目录

    7. Go to the plugin management page and enable the plugin
    8. 转到插件管理页面并启用插件

    9. Give yourself a pat on the back
    10. 拍拍自己的背

下载地址
https://downloads.wordpress.org/plugin/author-listing.1.02.zip
-EOF-

AI助手支持GPT4.0