I have the following code:
<?php $buycheck = get_post_meta($post->ID, 'buy-link', true); ?> <?php if ( $buycheck ) : ?> <div class="section-title sidebar span5"> <h5>Get This Release</h5> </div> <?php else : ?> <div class="section-title sidebar span5"> <h5>More Releases</h5> </div> <?php endif; ?>
Later in my code I want to be able to say that if buy-link does not exist - i.e. there is no data in that field - then do something, else do something different.
Not sure how to do this!