Conditional custom fields for images

<?php if((get_post_meta($post->ID, “mast”, true))) { ?>
<?php $image = get_post_meta($post->ID, ‘mast’, true); ?>
< a href =”<?php the_permalink() ?>” title= “<?php the_title_attribute(); ?>”>
< img alt =”<?php the_title_attribute(); ?>” src=”<?php echo $image ?>” />

<?php } ?>


Conditional custom fields