
內容簡介
使用簡碼簡單地顯示文章作者清單或網格,並帶有到其文章彙整頁面的連結。
簡碼為 [authors_list],並接受以下屬性。
style(1、2、3)
columns (2、3、4)
columns_direction(橫向、垂直)
avatar_size(任意數字,例如500)
amount(任意數字,默認無限)
show_title(是、否)
show_count(是、否)
show_bio(是、否)
show_link(是、否)
orderby(post_count、post_date、ID、login、nicename、email、url、registered、display_name、first_name、last_name)
order(ASC、DESC)
skip_empty(是、否)
minimum_posts_count(任意數字)
bio_word_trim(任意數字,留空表示不修剪)
only_authors(是、否)
exclude(用逗號分隔的用戶ID,例如1,3,4)
include(用逗號分隔的用戶ID,例如1,3,4)
roles(以逗號分隔的角色,例如administrator、editor)
latest_post_after(例如,如果設置為7,它將僅顯示在過去7天中發布過文章的作者)
name_starts_with(僅限於顯示名稱以特定字符開頭的作者)
first_name_starts_with(僅限於顯示名稱以特定字符開頭的作者的名字)
last_name_starts_with(僅限於顯示名字以特定字符開頭的作者的姓氏)
categories(用逗號分隔的分類ID,例如1,3,4)
terms(分隔符為逗號的分類標籤ID,例如1,3,4)
taxonomy(一個分類法的名稱,例如 post_tag )
title_element(包裝用戶名稱/作者的元素,默認為div,可以是任何元素,例如h2)
link_count(是、否)
屬性的示例用法:
[authors_list style="2" columns="2" amount="4" show_count="no"]
還有一些用於在每個元素之前和之後添加自定義內容的附加屬性:
before_avatar
before_title
before_count
before_bio
before_link
after_avatar
after_title
after_count
after_bio
after_link
屬性的示例用法:
[authors_list before_title="My custom content"]
這些 before/after 屬性還支持使用
{al:INSERT_FIELD_NAME}
動態用戶/作者元字段的示例用法:
[authors_list before_title="My first name is {al:first_name}"]
它們還支持一些動態輸出功能。目前支持顯示帖子鏈接和社交鏈接(需要Yoast SEO):
帖子鏈接的示例用法:
[authors_list after_title="{alf:posts}"]
[authors_list after_title="{alf:posts type=plain amount=5}"]
社交鏈接的示例用法:
[authors_list after_title="{alf:social}"]
角色的示例用法:
[authors_list after_title="{alf:role}"]
連結(“to”參數接受以下值:archive bbpress_profile buddypress_profile)的示例用法:
[authors_list after_title="{alf:link to=bbpress_profile}"]
由 FontAwesome 提供的社交圖標 SVG 遵從CC BY 4.0 協議。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Easily display a list or grid of post authors (or any other user role) and links to their post archives page using a shortcode.
Backend UI can be used to change all the options.
Introducing New Authors List Pro
The free version offers a large amount of features for free, and the PRO version comes with even more amazing features for your authors list.
Some of those features are Styler, Search and Filters. Styler allows easy change of color/typography/spacing on any of the elements in the authors list.Filters allow you to create a better organization of the authors list. Search allows your visitors to search for specific users.
Click here to get the PRO version!
Shortcode
All the options are available in the WP admin but you can also use a plain shortcode (as it was in version 1 of the plugin). The shortcode is [authors_list] and accepts the following attributes.
style (1,2,3)
columns (2,3,4)
columns_direction ( horizontal, vertical )
avatar_size (any number, example 500)
amount (any number, no limit by default)
show_title (yes,no)
show_count (yes,no)
show_bio (yes,no)
show_link (yes,no)
orderby ( post_count, post_date, ID, login, nicename, email, url, registered, display_name, first_name, last_name )
order ( ASC, DESC )
skip_empty ( yes, no )
minimum_posts_count ( any number )
bio_word_trim ( any number, leave empty for no trim )
only_authors ( yes, no )
exclude ( user IDs separated by comma, example 1,3,4 )
include ( user IDs separated by comma, example 1,3,4 )
roles ( roles separated by comma, example administrator,editor )
latest_post_after ( for example if set to 7 it will only show authors that have posts published in the past 7 days )
name_starts_with ( limit to authors whose display name starts with specific characters )
first_name_starts_with ( limit to authors whose first name starts with specific characters )
last_name_starts_with ( limit to authors whose last name starts with specific characters )
categories ( category IDs separated by comma, example 1,3,4 )
terms ( term IDs separate by comma, example 1,3,4 )
taxonomy ( name of a taxonomy, for example post_tag )
title_element (the element that wraps the name of the user/author, defaults to div, can be any element, for example h2)
link_count (yes, no)
Example usage with attributes:
[authors_list style="2" columns="2" amount="4" show_count="no"]
There are additional attributes for custom content before and after each element:
before_avatar
before_title
before_count
before_bio
before_link
after_avatar
after_title
after_count
after_bio
after_link
Example usage with attributes:
[authors_list before_title="My custom content"]
These before/after attributes also support dynamic user/author meta fields using
{al:INSERT_FIELD_NAME}
Example usage:
[authors_list before_title="My first name is {al:first_name}"]
They also support some dynamic output functionality. Currently supports displaying posts links and social links (Yoast SEO needed):
Example usage for posts links:
[authors_list after_title="{alf:posts}"]
[authors_list after_title="{alf:posts type=plain amount=5}"]
Example usage for social links:
[authors_list after_title="{alf:social}"]
Example usage for roles:
[authors_list after_title="{alf:role}"]
Example usage for link (the “to” parameter accepts foollowing values: archive bbpress_profile buddypress_profile):
[authors_list after_title="{alf:link to=bbpress_profile}"]
Social Icons SVGs by FontAwesome are licensed under CC BY 4.0
What’s Next
If you like this plugin, then please consider leaving us a rating / review. This plugin is maintained by WPKube, a WordPress resource site, where you can learn from our in-depth guides such as
What is WordPress, How to choose a WordPress hosting, & more!
Our Other Projects
Optin Forms: Simple and easy to use plugin for creating optin forms, works with most well known autoresponder services.
Simple Basic Contact Form: Light-weight contact form plugin
Subscribe to Comments Reloaded: Email Notification plugin for Comments
Advanced Excerpts: This plugin adds several improvements to WordPress’ default way of creating excerpts.
