Return to Snippet

Revision: 42424
at March 4, 2011 22:59 by mesh606


Initial Code
?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" />

Initial URL

                                

Initial Description
Bring in a file / image to your wp template

Initial Title
Wordpress Simple Fields Plugin - Show Images

Initial Tags
plugin, wordpress, simple

Initial Language
PHP