I’m having real difficulty pulling all atttachments including the image… The thing is, I need to be able to control how the content is displayed…
e.g.
<a href="(Path-to-full-image)" rel="customrel" class="aclasstodeine">
<img src="thethumbnailsize(defined in functions.php)" alt=""
class="aclasstodefine" />
</a>
REALLY hope someone can help
To get all attachment images you’ll need to do a query.
This will load any image attached to the post into the $images variable then do a foreach loop on them to get your images:
You can read up on wp_get_attachment_image_src here: http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src