Bear with me here. I'm using the Prospress plugin, which creates the custom post type "auctions", and have hacked it to support custom fields. I am then using the Custom Field Template plugin to add 4 entries for users to enter URLs for remotely hosted images (Photobucket, etc.) I do not want to host their image files.
Anyway, I'm then calling the values of these 4 fields (which are image URLs) into the Prospress single auction template, as shown here: http://pastebin.com/Tv8bFm4V
The following test auction post has the first 3 field values filled in with image URLs, and the 4th is left blank: http://www.riotcart.com/marketplace/?auctions=hello-bidders
So why would all 4 spots be displaying the "else" content of "LALALAAA"? Are my conditional statements somehow wrong? Should they be coded differently because they are calling custom field values from a custom post type?
Just for fun, I removed the conditional stuff from around each custom field call, and they work like a charm (lightboxed full sized popups, even), but without the conditional, spot 4 renders as a broken image, because the custom field it's calling was left blank. I can't guarantee that users will always have 4 images to enter for their post, so I really would like to conditionalize them!
P.S. I know the end result looks horrid at the moment. I'm just trying to get everything functioning correctly before tackling the cosmetics.