[Plugin: Custom Field Template] how do i display the image or file?
-
one of my custom fields is to display an image. the upload seems to work fine:
[Picture]
type=file
relation=true
class=file
multiple=true
the code i’m using to display all the other fields is below. this is obviously wrong. please help.
<?php
$block = get_post_meta($post->ID, 'Picture');
foreach(($block) as $blocks) {
echo $blocks;
}
?>
thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Custom Field Template] how do i display the image or file?’ is closed to new replies.