Hi together,
I am using the Custom Field Template plugin and am using the following code to upload a file.
[BookSpread_2]
type = file
relation = true
before = <span class="pic-thumb">
after = </span>
label = Upload Book Spread 2
I then display the file through the following code in my page template:
<?php
$BookSpread_2 = get_post_meta($post->ID, 'BookSpread_2', true);
echo wp_get_attachment_image($BookSpread_2, 'Book Spreads');
?>
But the before and after option don't seem to work. The code is not output. Any ideas what the issue is?
Any help would be appreciated!
Thanks,
Martin