archivespress-authors
Developer Knowledge Level
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Definition
[archivespress-authors orderby="name" order="asc" /]
Attributes
Name
Type
Description
Default
_source
string
Internal output source identifier; normally leave this unset.
shortcode
layout
string
basic or compact.
basic
post_type
string
Public post type slug; default can be filtered.
post
order
string
Sort direction: asc or desc.
desc
orderby
string
Sort by posts, id, name, slug, or email.
posts
avatar
integer
Avatar size in pixels; 0 hides it.
24
columns
integer
Number of columns, rendered within 1–6.
3
show-counts
boolean
Show counts; use true or false.
true
class
string
Additional CSS class.
Empty
var-font-size
string
Optional font size; for example 16px.
Empty
var-line-height
string
Optional line height; for example 1.5.
Empty
var-background
string
Item background color.
Empty
var-color
string
Item text color.
Empty
Output
HTML index of matching authors, or an empty string when the post type is invalid or no data exists.
Indexes authors of published, non-password-protected posts. The definition shows example attributes, not a complete list. Style values are validated before output: font sizes require an accepted unit (except zero), line heights may be unitless or use px, em, rem, or %, and colors must use a supported color syntax. Invalid values are ignored. Author links use WordPress archive URLs by default, including for custom post types.
Example
[archivespress-authors orderby="name" order="asc" avatar="0"]