[Custom Field Template] display an image with url?
-
i use FILE UPLOAD to upload the image and use the code to show it in the template, everything is really good but the problem is that when having uploaded the image the plugin enters a number into the image custom field value like “7345” but i want the plugin that after upload enter the file URL into the custom field so that I can show the image easily in the in my template. any suggestion?
[thumb] type = file label = ????? ???? relation = true
<img src="<?php echo get_post_meta($post->ID, 'thumb',true); ?>" />
custom field template value is now
76371
i want it to be like this url
https://www.mydomain.com/wp-content/uplods/2010/09/image.jpg
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Custom Field Template] display an image with url?’ is closed to new replies.