WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to call an image with php

[Resolved] How to call an image with php

  • 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 {
    
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to call an image with php’ is closed to new replies.