I'd like to have this code below pull either the custom field "a2pImage" OR "thumbnail", but not both at the same time. . Is there a way to alter the code to make this happen? Right now it's only pulling a2pImage. Is there a way to set it up to look for either of those custom fields and pull the one that is available.
<a href="<?php the_permalink() ?>" rel="bookmark" title="Read the Full Review »"><img src="<?php $key="a2pImage"; echo get_post_meta($post->ID, $key, true); ?>" alt="thumbnail" class="thumbnail" /></a>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Read the Full Review »"><img src="<?php $key="a2pImage"; echo get_post_meta($post->ID, $key, true); ?>" alt="thumbnail" class="thumbnail" /></a>