WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Using gallery desription in a gallery template (2 posts)

  1. nick_nielsen
    Member
    Posted 4 years ago #

    Since the description fields now accept and output HTML I am trying to use the gallery description to give an introduction to each gallery by getting the gallery description (galdesc) to output from a gallery template.

    However, if I put
    <?php echo $gallery->galdesc ?>
    I get no output.

    What code should I be using ?

  2. nick_nielsen
    Member
    Posted 4 years ago #

    by using

    <?php var_dump($myvariable)?php
    in this case $gallery - I got the answer :

    If you want your gallery description to show in your gallery use

    `<?php echo $gallery->description ?>

Topic Closed

This topic has been closed to new replies.

About this Topic