Popular Authors includes two shortcodes that allow you to display the list of top authors and the top posts by author. If you’re unfamiliar with shortcodes, please read this article in the WordPress Codex.

[[wzpa_popular_authors]]

Use this shortcode to display the popular authors based on their number of visits tracked by Top 10. This shortcode takes multiple different attributes, which are all optional, as follows:

ParameterTypeDescription
numberIntegerMaximum authors to return or display. Default: empty (all authors).
dailyBooleanWhether to show daily or overall counts. Default: false.
daily_rangeInteger / NullThe daily range for the custom period. Default: null.
hour_rangeInteger / NullThe hour range for the custom period. Default: null.
offsetIntegerThe number of authors to offset in retrieved results. Can be used in conjunction with pagination. Default: 0.
optioncountBooleanShow the count in parenthesis next to the author’s name. Default: true.
exclude_adminBooleanWhether to exclude the ‘admin’ account, if it exists. Default: false.
show_fullnameBooleanWhether to show the author’s full name. Default: false.
show_avatarBooleanWhether to show the author’s avatar/thumbnail. Default: false.
hide_emptyBooleanWhether to hide any authors with no posts. Default: true.
cacheBooleanWhether to turn ON caching of the HTML output. Default: false.
includeArray / StringArray or comma/space-separated list of author IDs to include. Only authors belonging to the list will be displayed. Default: empty.
excludeArray / StringArray or comma/space-separated list of author IDs to exclude. Default: empty.

[[wzpa_author_top_posts]]

Use this shortcode to display the most popular posts for an author. This shortcode takes multiple different attributes, which are all optional, as follows:

ParameterTypeDescription
authorIntegerAuthor ID to retrieve posts for. Default: 0 (all authors).
fieldStringField to filter authors by. Options: id, slug. Default: id.
posts_per_pageIntegerNumber of posts to display per page. Default: 10.
post_typeStringPost type to retrieve. Default: post.
orderbyStringField to sort posts by. Default: visits.
orderStringSorting order. Options: ASC, DESC. Default: DESC.
dailyBooleanWhether to retrieve daily counts or overall counts. Default: false.
disp_list_countBooleanWhether to display the count in a list format. Default: true.