<mt:Authors>
A container tag which iterates over a list of authors (users with a permission).
Default listing includes Authors who have at least one published entry.
<mt:Authors>
<$mt:AuthorDisplayName$>
</mt:Authors>
Attributes ¶
All fields are optional.
any_typedisplay_nameidlastnlimitmin_scoremax_scoremin_ratemax_ratemin_countmax_countnamespaceneed_entryneed_associationrolerolesscoring_tosort_bysort_orderstatususername
any_type ¶
Pass a value of “1” for this attribute to select users of any type associated with the blog, including commenters. Default is “0”. Requires the use of need_entry="0"
Display all authors of any type in the installation:
<mt:Authors any_type="1" need_entry="0">
<li><$mt:AuthorDisplayName$> [<$mt:AuthorID$>]</li>
</mt:Authors>
Bug:
any_typeattribute of mt:Authors doesn’t work as expected
display_name ¶
Specifies the displpay name a particular author to select.
<mt:Authors display_name="Melody Nelson">
<!-- do something -->
</mt:Authors>
id ¶
Specifies a particular author to select by unique id number. This attribute takes precedence over all others.
<mt:Authors id="12">
<!-- do something -->
</mt:Authors>
lastn ¶
Limits the selection of authors to the specified number. Has nothing to do with recent (as in recent dates) as lastn does for most other loop tags.
Limit the result to 4 newly creatd authors (using sort_by and sort_order attributes).
<mt:Authors lastn="4" sort_by="created_on" sort_order="descend">
<!-- do something -->
</mt:Authors>
limit ¶
Alias to lastn.
min_score ¶
If ‘namespace’ is also specified, filters the authors based on the score within that namespace. This specifies the minimum score to consider the author for inclusion.
max_score ¶
If ‘namespace’ is also specified, filters the authors based on the score within that namespace. This specifies the maximum score to consider the author for inclusion.
min_rate ¶
If ‘namespace’ is also specified, filters the authors based on the rank within that namespace. This specifies the minimum rank to consider the author for inclusion.
max_rate ¶
If ‘namespace’ is also specified, filters the authors based on the rank within that namespace. This specifies the maximum rank to consider the author for inclusion.
min_count ¶
If ‘namespace’ is also specified, filters the authors based on the count within that namespace. This specifies the minimum count to consider the author for inclusion.
max_count ¶
If ‘namespace’ is also specified, filters the authors based on the count within that namespace. This specifies the maximum count to consider the author for inclusion.
namespace ¶
Used in conjunction with the “min_*” and “max_*” attributes to select authors based on a particular scoring mechanism.
need_entry ¶
Boolean identifer to determine whether the author(s) must have published an entry to be included or not. Default “1”, author needs to have published an entry.
Select all authors with “Author” role regardless of whether they have any entries associated to them.
<mt:Authors role="Author" need_entry="0">
<$mt:AuthorDisplayName$>
</mt:Authors>
need_association ¶
Boolean identifier to require author(s) to have explicit association to the blog(s) in context. This attribute can be used to exclude system administrators who do not have explicit association to the blog(s). This attribute requires blog context which can be created by includeblogs, excludeblogs, and blog_ids. Default is “0”
role ¶
A the role(s) used to filter returned authors.
Value can be a comma separated list of roles (which will be converted to a list of roles separated with ” OR “):
<mt:Authors role="Author, Contributor">
Or roles can be specified directly with the “OR” operator:
<mt:Authors role="Author OR Contributor">
Select all users with the role “Editor”:
<mt:Authors role="Editor">
Select all users with the role NOT “Editor”:
<mt:Authors role="!(Editor)">
Bug: Role attribute of mt:Authors using NOT syntax lists authors not associated to the current blog
roles ¶
Alias of role.
scoring_to ¶
If ‘namespace’ is also specified, filters the authors based on the score within that namespace. This attribute specifies which type of object to look up. the object has to be specified in context.
sort_by ¶
Sort by author data. See lastn for example.
Supported values:
display_namenamecreated_onscorerate
sort_order ¶
Order of returned authors. See lastn for example.
Supported values:
ascend(default)descend
status ¶
Supported values:
enabled(default)disabled
username ¶
Specifies the username a particular author to select. Like the id attribute, this attribute takes precedence over all others.
<mt:Authors display_name="Melody Nelson">
<!-- do something -->
</mt:Authors>
The username and id should never be used together because they are both idetifiers for a particular user.
Examples ¶
List all Authors in a blog with at least 1 entry:
<mt:Authors>
<a href="<$mt:AuthorURL$>"><$mt:AuthorDisplayName$></a>
</mt:Authors>
List all Authors and Commenters for a blog:
<mt:Authors need_entry="0" roles="Author, Commenter">
<a href="<$mt:AuthorURL$>"><mt:AuthorDisplayName$></a>
</mt:Authors>
Related ¶
- Blog authors who no longer have the ability to publish entries are not listed in mt:Authors
- Template Loop Meta Variables offer conditionals for odd, even, first, last, and counter.

Elise Bauer
October 8, 2008 11:02 PM | Reply
the attribute "roles" should be changed to "role". check with beau and brad.
if "role" then the attribute works.
if "roles" then it doesn't work.
Have no idea about the separator. I think Beau told me you have to use OR separators.
~Elise
Beau Smith
June 27, 2009 9:35 PM | Reply
Recent Entries per Author:
Taken from
http://wiki.movabletype.org/Recent_entries,_per_authorMihai Bocsaru
November 10, 2009 1:02 PM | Reply
If you want to display a list of authors that have published at least one article you would use:
<mt:Authors role="Author"> ... </mt:Authors>
In case you would use:
<mt:Authors> ... </mt:Authors>
This would display a list of author no matter what permission each author has, as long as he/she published at least one item (entry or comment).
Mihai Bocsaru
November 10, 2009 1:03 PM | Reply
If you want to display a list of authors that have published at least one article you would use:
<mt:Authors role="Author"> ... </mt:Authors>
In case you would use:
<mt:Authors> ... </mt:Authors>
This would display a list of author no matter what permission each author has, as long as he/she published at least one item (entry or comment).
Beau Smith
November 25, 2009 9:42 PM | Reply
Link to the author archive for each author using the ArchiveLink tag:
dug
replied to comment from Beau Smith
November 27, 2009 7:59 AM | Reply
Hi Beau,
How about extracting the mt-cp link to the dynamic profile view? Do I need to build the URI by hand inserting blogID and userID?
Seems like an tag might come in handy :-)
dug
replied to comment from Beau Smith
November 27, 2009 8:18 AM | Reply
Right-ho that didn't work...
OK, here's what I'm using to link to the user's dynamic profile:
Seems like a tag (mt:authorProfileURL) would come in handy :-)