I've checked the forum and read the function description in the User Guide. I'm trying to figure out how to not display any of the exif titles for photos that don't have exif information.
I tried using the following code in my theme's image.php file:
`printImageMetadata('', false, 'imagemetadata_inline', '', false, '', 'No EXIF information available.');`
However, it displays the exif categories, Camera Model, etc, even when a photo doesn't have exif information. Using the function call above, shouldn't the function print "No EXIF information available" when a photo doesn't have exif information?
Or, is there another way to test if the exif info is blank?
Thanks!
Comments
Generally speaking, the `printXXX` functions will always output something, is if you wish sometimes not to have output you need to use the equivalent `getXXX` function to test first.
`
if (getImageMetaData())
{
printImageMetadata('', false, 'imagemetadata_inline', '', false, '', 'No EXIF information available.');
}
`
http://www.zenphoto.org/support/topic.php?id=4786#post-28148
So, if you want to know if any exif data will be displayed you have to test each element with `display` set to `true` and see if it is not empty.