Hey all,
I am building a "simple" slideshow for a wordpress site which will use the existing gallery from the wordpress install. The thing currently grabs 5 random images and puts the links into a page nicely. However, I want to be able to specify what images to grab, and i thought that if i add "slideshow" into the image description, it would be easy to parse out.

However, my query here doesn't seem to grab that. If anyone here can help me with this, it would be very much appreciated!!!

function getImagesForSlideshow($_max = 5, $order = 'random')

if ($order == 'random') {
$r = new WP_Query("showposts=$_max&what_to_show=posts&post_status=inherit&post_type=attachment&orderby=rand&post_mime_type=image/jpeg,image/gif,image/jpg,image/png&post_content=slideshow");
} else {
$r = new WP_Query("showposts=$_max&what_to_show=posts&post_status=inherit&post_type=attachment&orderby=menu_order ASC, ID ASC&post_mime_type=image/jpeg,image/gif,image/jpg,image/png&post_content=slideshow");

if ($r->have_posts()) {

echo "<div id=\"featured_container\">\n";
while ($r->have_posts()) : $r->the_post();

print "\t\t<img src=\"".wp_get_attachment_url(get_the_ID())."\"/>\n";

#print "<!-- " . get_the_content() ."-->\n";
echo "\t\t</div>\n";

return $_retval;