les james

design & stuff

Templating WordPress Image Attachments

Wordpress doesn’t come with any native tags to template post attachments so I came up with a function to help. Simply include a chunk of code in your functions.php file and call the function from inside the loop. The function returns and array with multiple pieces of info about your post attachments.

More design...

and stuff...