[Plugin: NextGEN Gallery] If There is a Description show it, if not show file name
-
So I am trying to get a little php to work but am just terrible when it comes to php. I would like to show the image description if there is one and if there isn’t I would like the image filename to show. Here is what I have but I know it is wrong:
<?php $f = $image->filename; $d = $image->description; if ($d) echo "$d"; else { echo "$f" ; } ?>
Anyone know what I am doing wrong? Thanks!
- The topic ‘[Plugin: NextGEN Gallery] If There is a Description show it, if not show file name’ is closed to new replies.