[WordPress] 外掛分享: Author Listing

首頁外掛目錄 › Author Listing
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
6320 天前
最後更新
問題解決
WordPress 2.6+ v1.02 上架:2008-08-20

內容簡介

這是一個外掛提供模板標籤功能,用於列出 WordPress 安裝中所有活躍(或非活躍)的作者。

<?php list_active_authors( 'days=30&include_protected_posts=0' ); ?> 將會列出最近 30 天內所有活躍的作者,不計算密碼保護的文章為「活躍」。兩個參數都是可選的。

<?php list_inactive_authors( 'days=30&include_protected_posts=0' ); ?> 將會列出最近 30 天內所有非活躍的作者,包括密碼保護的文章在內為「活躍」。同樣,這兩個參數都是可選的。

如果未提供「天數」,則這些標籤預設為最近 30 天。
如果未指定「include_protected_posts」,這些標籤將預設不包括密碼保護的文章。

HTML 輸出具有較多的類別,但如果您需要調整,可以這樣做:在您的佈景主題中創建名稱為「view」的目錄,以及其中一個名稱為「author-listings」的目錄。然後將模板檔案 view/author-listings/active-authors-list.php 和 / 或 view/author-listings/inactive-authors-list.php 從外掛目錄中複製到您的佈景主題目錄中,根據需要進行修改。如果這些檔案存在於您的主題目錄的這些目錄中,它們將覆蓋外掛目錄中的檔案。這很好,因為這意味著當您更新外掛時,您只需覆蓋舊的外掛目錄,因為您沒有更改其中任何檔案。感謝 John Godley 提供了這種魔法。可連接到「User Photo」外掛以顯示作者照片。

該外掛最初代表 Puffbox 生產。

此外掛是否缺少您想要的功能?我很樂意接受功能贊助: 與我聯繫,我們可以討論您的想法。

任何問題: 與我聯繫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.02) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Author Listing」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A plugin providing template tags to list all active (or inactive) authors in the WordPress installation.
Will list all the authors active in the last 30 days, not counting password protected posts as "activity". Both parameters are optional.

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.

延伸相關外掛

文章
Filter
Mastodon