Stupid WP
Stupid WP
Out of context: Reply #3
- Started
- Last post
- 9 Responses
- noob123450
The way I did it was thought custom fields.
http://codex.wordpress.org/Custo…I created a custom field called "thumbnail" and pasted the URL of the thumbnail image into the value box.
Here's the code to echo back the image=
<?php $thumb = get_post_meta($post->ID, 'thumbnail', $single = true); ?>
<?php // if there's a thumbnail
if($thumb !== '') { ?>
<p>
<img src="<?php echo $thumb; ?>" height="200" width="333" />
</p>
<?php } // end if statement// if there's not a thumbnail
else { echo ''; }
?>