Displaying the metadata

Hi,
How do I display the metadata correctly on the page of the image. In the admin panel, I've gone to options-->Image and ticked the Metadata to show the fields of copyright notice(filled in public domain when uploading image) and the City/place and country to "show", but when I click on "image info" on a image page, all it shows is the time the photo was taken. Also I don't want a display box to show this data, I just want it listed below the image description like:

City: Madison
State: Wisconsin
Country: United States

Comments

  • acrylian Administrator, Developer
    Standard themes display the image meta data as read from the images. What it reads is set on the options, the fields you have check. If you change that afterwards you have to do a metadata refresh. Note this might overwrite content.

    To display specific data only you have to modify the theme used. `printImageMetadata` is used by standard themes. `getImageMetaData()` gets an array of the fields available you can use to create a custom function. Or use `getImageData()` or `printImageData()` to display a field directly. (See the functions doc, say 1.4.5 still but these are the same).
Sign In or Register to comment.