Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Cars10

    (@shonu)

    Looking at the image class properties (image.php), it is a bit confusing that title is the Gallery title and alttext.
    No trace of a var named caption…?

    Thread Starter Cars10

    (@shonu)

    I found caption only in the meta_data array, originating from EXIF “Comments”.

    I have to touch the original file overwriting it liek this:

    <span class="ngg-caption">
      <?php
          //var_dump($image);
          if($image->alttext)
            echo $image->alttext;
          else if($image->caption)
            echo $image->caption;
          else if($image->meta_data["title"])
            echo $image->meta_data["title"];
      ?>
    </span>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Caption empty in Caption template’ is closed to new replies.