image_author
The image_author tag is a single tag that Textpattern will replace with the author’s name associated with the current image in an images list.
attributes
section="unset"
this_section="0" (boolean)
link="0" (boolean)
title="1" (boolean)
wraptag="unset"
class="unset"
genealogy
Version 4.3.0
Add image author to gallery
<txp:images category="mammals">
<a href="<txp:image_url />"><txp:thumbnail /></a>
<div class="by">by <txp:image_author /></div>
</txp:images>
Link to author list
<txp:images category="fish">
<a href="<txp:image_url />"><txp:thumbnail /></a>
<div class="by">by <txp:image_author link="1" /></div>
</txp:images>
What it does…
Displays thumbnails and author info for each image in the fish category. The authors’ names are hyperlinked to site.com/author/image/User+Name.