Trouble with 2.5 and Custom Fields
Okay this is making me tear my hair out…..I’ve spent this entire day reading this forum and trying every suggestion I could find and it’s still not working….
I’m trying to display a thumbnail image that is entered as a custom field. I’ve verified that the image is entered correctly in the post’s custom fields, as such:
I’ve verified that the file is indeed in the uploads folder
I’ve enter the php code where I want it to go as this:
<img src="<?php echo get_post_meta($post->ID,'thumb',true); ?>" />
I’ve also, as said, tried every other iteration suggested that I could find in combin thru these forums, all to no avail. When I view the source of the resulting page, I see my image referenced empy, like this:
`<img src=”” />
Is this a bug, or has something changed with 2.5 in how you display images contained in custom fields?
- The topic ‘Trouble with 2.5 and Custom Fields’ is closed to new replies.