/ Published in: PHP

Bring in a file / image to your wp template
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
?php $image_id = get_post_meta(get_the_ID(), "your-id-here", true, 2); $img_src = wp_get_attachment_url($image_id, 'thumbnail'); ?> <img src="<?php echo $img_src ?>" alt="An image" />
Comments
