Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $image_id = get_post_meta(get_the_ID(),'your_meta_key',true);
- $image_obj = wp_get_attachment_image_src($image_id,'full');
- if(!empty($image_obj)){
- ?>
- <img src="<?php echo $image_obj[0];?>"/>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement