x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Show gallery photographer name

Question:

How can I show the name of the photogapher in the gallery?

Answer:

Here’s the code:

{exp:query sql="SELECT member_id, username FROM exp_members WHERE member_id = '{author_id}' "}
by {username}
{
/exp:query}

Category:Tricks Category:Queries Category:Image Gallery