[displaying standard image]Custom field image, if no image excists
-
(using 2.7.1 on PHP5)
Hi there,
I’m using a customfield option to display my images on my website:
<img src="<?php echo get_nkm_imageurl('customfoto'); ?>" width="320px" height="240px" alt="fotolinks" />
As you can see I’m using the NKMImageField plugin, but that shouldn’t matter as it is using customfields (as far as I know).
The problem is that this plugin is still far from perfect, when you are changing a topic in it’s status (published etc.) it loses this fields information and no image is being displayed (because the img =src”” has nog source-information anymore).
Does anyone here know a way to change this? I kinda need some sort of code to tell the img src=”” that, when it’s empty, it needs to use a standard image (images/noimage.jpg). Could someone help me with this?
- The topic ‘[displaying standard image]Custom field image, if no image excists’ is closed to new replies.