WordPress.org

Support

Support » Plugins and Hacks » [NextGEN gallery] show image description for an gallery in a album

[NextGEN gallery] show image description for an gallery in a album

  • WordPresss 2.7.1, NextGen Gallery 1.2.1

    Does anyone fix the followed probleme ?

    after install NextGEN Gallery
    > create an album
    > create a gallery
    > insert gallery into the album

    Once clic in the album page, the gallery is displayed width the “gallery.php” template. I would use the gallery-caption.php” template (OR ANOTHER).

    To resume : How to get descriptions in gallery inserted in an album.

    (I’ve change for now the “gallery.php” so it works but I would create a new template (and define it somewhere) which seems more logical. (for updates)

    Sorry for the english, I’m french 🙂

    Thank’s for your answers ….
    Have a good day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • just an up to help myself

    You need to edit the Gallery.php file under nextgen-gellery/view/

    you can call the various meta elements of each image using the following:

    Title:
    <?php echo $image->description ?>

    AltText/Title:
    <?php echo $image->alttext ?>

    Is it possible to call these variables, such as `<?php echo $image->alttext ?>’ in other plugin php files? I’m trying to auto populate a field in another plugin automatically with the image’s name.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[NextGEN gallery] show image description for an gallery in a album’ is closed to new replies.
Skip to toolbar