Hello
In my customized theme (based on ZPBootstrap) I want to show date, city, location, state and country inline beyond the image. I added the following code in image.php:
<?php if (getImageDate()){
echo printImageDate() . " |";
}
?>
<?php if (getImageLocation()) {
echo getImageCity(), ", ", getImageLocation(), " |";
?>
<?php } elseif (getImageCity()) {
echo getImageCity(), " |";
}
?>
<?php if (getImageState()) {
echo getImageState(), " |";
}
?>
<?php if (getImageState()) {
echo getImageCountry();
}
?>
This works fine until I manually change the image data in backend, for example, add a description. Then the metadata location, city, state and country are not shown anymore; only description and date remain. This is the case for the changed image itself as for the following 9 images. This number corresponds with the number of images shown per page in backend. The metadata still remain in backend and in IPTC-Data, but are not shown at frontend.
Here two examples:
1: image-page as it should be: http://zentest.hueser.ch/pflanzen/orchideen/P1090147.jpg.php
2: image-page after adding description: http://zentest.hueser.ch/pflanzen/orchideen/P1130716.jpg.php
Is this by design (you should not change metadata which come from IPCT/Exif) or did I put wrong code or is it a bug?
Btw: I tried the same code in standard Zenpage theme with the same result.
Thanks for your help!
Gonepteryx