• Resolved kmaier

    (@kmaier)


    not sure the syntax but can something like this be done to pull an image from a custom field?

    <?php  $sideImage = get_post_meta($post->ID, 'side_image', true);
    if ( !empty($sideImage) ) echo $sideImage; ?>
    
    <?php echo <img src="$sideImage;" alt="" /> ?>

    thanks for any help

    kmaier

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom fields – images’ is closed to new replies.