Yeah, but that’s a bit too much ??
I figured out, how I can do it.
I changed the function the_meta() to
function the_meta() {
global $id, $post_meta_cache;
if ($keys = get_post_custom_keys()) {
foreach ($keys as $key) {
$values = array_map(‘trim’,$post_meta_cache[$id][$key]);
$value = implode($values,’, ‘);
return $value;
}
}
}
Now I can echo that image in the template with
<img src=”<?php echo the_meta(‘image’); ?>” />
and that works.
Now I just need a hack which allows me to upload pictures directly from the ‘Write’ page ??