Is there a way I can exclude the post thumbnail AND a custom field with the value "_lm_comm_logo" from this query that pulls all of the images associated with a particular post?
<?php $args = array('numberposts' => -1, 'orderby' => 'menu_order', 'order' => 'ASC', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_parent' => $post->ID); ?>
<?php if ( $photos = get_posts($args) ) : ?>
<div class="slides">
<?php foreach ( $photos as $photo ) : ?>
<div class="slide">
<a href="<?php echo $photo->guid; ?>" class="lightbox" rel="community[<?php echo $post->ID; ?>]"><?php echo wp_get_attachment_image($photo->ID, 'thumbnail'); ?></a>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>