[WordPress] 外掛分享: Team List

首頁外掛目錄 › Team List
WordPress 外掛 Team List 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(7 則評價)
480 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v4.0.0 上架:2015-02-11

內容簡介

「Team List」是一款外掛程式,可協助您使用 WordPress 使用者建立簡單的團隊網站,提供多種顯示選項。可透過區塊、短碼、範本標記或內建小工具,顯示網誌作者。

在為數位行銷客戶開發類似功能之後,我們決定將自己的知識整合成這個簡單的外掛程式,使用起來非常直覺:

首先,外掛程式會在 WordPress 使用者設定檔中加入一個小勾選框,可切換於團隊清單中顯示該使用者。這表示您可以為每個使用者決定是否出現在團隊清單中。

然後,您可以使用以下其中一種方式,在網站上任何位置顯示團隊清單:

動作

使用「wp_team_list」鈎子直接在您的佈景主題或外掛程式中顯示使用者。

例如,您可以顯示任何角色的使用者,並按其名稱排序:

<?php
echo do_action( 'wp_team_list', array( 'role' => 'all', 'orderby' => 'name' ) );
?>

注意:「Team List」支援許多「WP_User_Query」所支援的引數。

區塊

在基於區塊的編輯器中使用「Team List」區塊,顯示一個或多個團隊清單,並選擇一個以上的角色和改變順序。如果您希望在另一個頁面提供完整的團隊清單,還可以提供連結。

短碼

使用「[wp_team_list]」短碼,在文章中顯示團隊清單。支援引數:

role - 根據角色篩選使用者(以逗號分隔)
使用「all」以顯示任何角色的使用者
預設值:「administrator」
orderby
預設值:「post_count」
order -「asc」或「desc」
預設值:「desc」
include - 篩選具有特定 ID 的使用者(以逗號分隔)
has_published_posts - 篩選已發表文章的使用者。
使用以逗號分隔的文章類型清單或「true」,以篩選所有文章類型。

範例:

[wp_team_list role="author" orderby="last_name" order="desc"]

專業提示: 如果您使用「Shortcake WordPress 短碼 UI」外掛程式,您將在視覺編輯器中得到短碼的行內預覽。您還可以透過點擊按鈕添加短碼。

小工具

希望在側邊欄中顯示團隊成員?使用內建 WordPress 小工具。您可以設定所需的角色、要顯示的使用者數量,甚至連結到單獨的團隊頁面。

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.0.0) 或搜尋安裝

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

原文外掛簡介

Team List is a plugin that helps you to create a simple team site using your WordPress users with various display options. Either use a block, a shortcode, a template tag or the built-in widget to display blog authors.
After creating similar functionality for a couple of clients, we decided to roll our knowledge into this simple plugin. It’s really straightforward to use:
First of all, the plugin adds a small checkbox to the user profile in WordPress to toggle its visibility in the team list. This means you can decide for every user whether he should show up in the team list or not.
You can then use one of these ways to display the list anywhere on your site.
Action
Use the wp_team_list hook to directly display the users in your theme or plugin.
For example, you can show users of any role ordered by their name:
'all', 'orderby' => 'name' ) );
?>

Note: Team List supports many of the arguments WP_User_Query supports.
Block
Use the “Team List” block in the block-based editor to display one or more team lists in any post types. You can select one or more roles and change the order. If you want you can also provide a link to a full team page.
Shortcode
Use the [wp_team_list] shortcode to display a team list in your posts. Supported arguments:

role – Filter users by roles (comma-separated).
Use all to show users with any role.
Default: administrator
orderby
Default: post_count
order – Either asc or desc.
Default: desc.
include – Filter users with specific IDs (comma-separated).
has_published_posts – Filter users with published posts.
Either a comma-separated list of post types or true to filter by all post types.

Example:
[wp_team_list role="author" orderby="last_name" order="desc"]

Pro tip: If you use the Shortcake WordPress plugin, you’ll get an inline preview of the shortcode right in the visual editor. You can also add the shortcode with the click of a button.
Widget
Want do display the team members in your sidebar? Use the built-in WordPress widget. You can set the role you want, the number of users to show and even link to a separate team page.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon