[Plugin: Custom Field Template] File and Image Display
-
I am setting up a themes site where the member can upload both a screenshot and a zip file
The file id is indeed being stored in the database but the files are not attached to the posts.
This is what I am trying to use.
[Theme Image] type = file relation = true [Theme Upload] type = file relation = true
I want both the thumbnail image alignleft and a download link at the bottom of the post.
I have tried using the following in the loop to no avail.
<?php $Theme Image = get_post_meta($post->ID, 'Theme Image', true); echo wp_get_attachment_image($Theme Image, 'screenshot'); ?> <?php $Theme Upload = get_post_meta($post->ID, 'Theme Upload', true); echo wp_get_attachment($Theme Upload, 'Download'); ?>
What I’m doing is obviously wrong, a bit of guidance would be nice.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘[Plugin: Custom Field Template] File and Image Display’ is closed to new replies.