WordPress.org

Ready to get started?Download WordPress

Forums

[NextGEN gallery] show image description for an gallery in a album (4 posts)

  1. nicleg
    Member
    Posted 5 years ago #

    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.

  2. nicleg
    Member
    Posted 5 years ago #

    just an up to help myself

  3. justintylermoore
    Member
    Posted 4 years ago #

    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 ?>

  4. darkmatter661
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic