• Hi,

    I have created an image field called image01. I tried to display the image in my post and i include the following line to the post template.

    <?php echo get_post_meta_image($post->ID, “image01”, true); ?>

    However, the display is the URL of the image. How can I display image?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • How you call a meta field depends partly on your theme. Please provide more info.

    joetheboss

    (@joetheboss)

    The correct syntax is:

    <img src="<?php echo get_post_meta($post->ID, 'image01', true); ?>" />

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Verve Meta Boxes] How to display image into the post template?’ is closed to new replies.