Hi,
I'm currently developing a custom theme for a client of mine. What I want to do is retrieve all the attachments (= images) in the installation via wp_getposts (http://codex.wordpress.org/Function_Reference/get_posts).
That code would be:
$attachments = get_posts('post_type=attachment&numberposts=-1');
foreach ($attachments as $att) .... and so on
I then do some stuff to the images to finally create an image slideshow with the images from the pages.
Now the tricky part, I want to exclude the attachments of 2 specific pages in the installatie (client request) and I don't really know how to go about this.
Any wordpress wizards around here?