Indeed, just call the template tag <?php display_author_media($author_id); ?>
in your theme’s author.php
(or elsewhere, if you want). The template tag has optional parameters if you want to customize the CSS or text. The default options will display thumbnails of the 10 most recent media items credited to the given user floated to the right with a width of 150px and a header of <h3>Recent Media</h3>
.
These options can be changed with a more verbose call to the function: <?php display_author_media($author_id, $sidebar = true, $limit = 10, $link_without_parent = false, $header = "<h3>Recent Media</h3>", $exclude_unattached = true); ?>
. This will make only the 10 most recent media items that are attached to a post display with the given header taking up the maximum width it’s afforded. Each image will link to the post in which it appears, or the attachment page if it has no parent post (unless $link_without_parent
is set to false
). If you don’t care about whether the media is attached to a post, change $exclude_unattached
to false
. This function as a whole will only display media uploaded and credited to a user after this plugin was installed.