The title is the short version of the question. Here's what I need in more details...
If the answer is not so simple, I would be glad if you can point me to the right direction with a tutorial or to the codex and where I can ready more about this.
Inside the WP loop, and "maybe" before using "the_content();", how can I tell wordpress to go to the database, loop/query through each one of the images inserted on that post/page, in such a way that I'll have full control of how those images will be displayed.
I need something that will be easy and intuitive for the client to update (with new images), and I consider easy and intuitive when you only have to click the "add media" button, upload some images and add them to the post/page.
At the same time, I need more control on how those images will be displayed to show all them like so:
<a href="link-to-full-img-size-01"><img href="img-01-thumbnail" /></a>
<a href="link-to-full-img-size-02"><img href="img-02-thumbnail" /></a>
<a href="link-to-full-img-size-03"><img href="img-03-thumbnail" /></a>
<a href="link-to-full-img-size-04"><img href="img-04-thumbnail" /></a>
And each anchor link will also have a rel="shadowbox[page-title]"
.
I've done this before, and something even more complex than this, but it's far from being easy to maintain (at least for clients).
I'm thinking about creating a custom-post-type with some different taxonomies. Then I create a new post, linked to a given taxonomy, use it as a bucket for all the images for that taxonomy, and than import it all inside another page-template, but I still don't know how to control how the images will be displayed.
Hope the question and description is clear enough. Thanks!