[Plugin: NextGEN Gallery] How to add date/time into image description (2 posts)

  1. freeka
    Posted 6 years ago #

    Hi there

    Apologies if it's been asked before but I can't seem to find the answer to it.

    I am uploading my pictures and I want to display the date/time or any other meta information on the description or title.

    Is there anyway I can automate this process or will I have to copy and paste the information for 3500 pictures! :-)

    Thanks in advance!


  2. tomern
    Posted 6 years ago #

    I'm also trying to get this function ..
    So far I managed to discover two things :

      Within the plugins\NextGEN Gallery\view folder there is a file called gallery.php in line 42 under the <div class="ngg-gallery-thumbnail" > code there is the link that you need to add a code for the date in your description (inside the title tag -if you overwrite the existing code you will lose the description of the file insert as addition-)

    • the first code is <?php echo $exif['created_timestamp'] ?> This code did not work for me.. Might work for you.
    • the second code is <?php echo $image->imagedate ?> it worked for me, but with a problem not yet resolved
      It shows the date and time of the file in question and i want only the date

    Hope this helps you
    And if you find the solution please share it with me also
    Good luck

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.