i have this piece of code and i'm trying to call the image associated with it. however i can not get to bring the image up.
can someone point me in the right direction or tell me what i am doing wrong?
here is my url http://307element.net/folio/ click on either of the images to see the problem any help would be appreciated.
<?php
if (get_post_meta($post->ID, 'post-image', true) != null) {
print '<a href="<?php echo $image = post-image; ?>';
print '" rel="lightbox"';
print '"><img src="';
$key="post-image";
echo get_post_meta($post->ID, $key, true);
print '" alt="" /></a>';
} else {
}
?>