Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shauno

    (@shauno)

    Hi rbritan

    It depends on if you’ve added ‘Image’ custom fields, or ‘Gallery’ custom fields.
    For gallery custom fields, you use the code:
    <?php echo nggcf_get_gallery_field($gallery->ID, "My Gallery Field Name"); ?>
    Anywhere in the gallery template.

    For image custom fields, you use the code:
    <?php echo $image->ngg_custom_fields["Your Field Name Here"]; ?> in the foreach() loop outputting the actual thumbnails.

    If you are using the normal [nggallery id=x] shortcode, then you need to add the code to the /wp-content/plugins/nextgen-gallery/view/gallery.php.

    I hope that helps

    Can you explain this in more detail? I am customizing our site more and more and I just don’t know WP enough to understand where I should put this line of code.

    For image custom fields, you use the code:
    <?php echo $image->ngg_custom_fields[“Your Field Name Here”]; ?> in the foreach() loop outputting the actual thumbnails.

    Plugin Author shauno

    (@shauno)

    Please read the FAQ. If you read the FAQ, follow the instructions, and are still having problems, please start your own thread with the specifics details of your problem, and I will help as much as possible.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Where to put ?’ is closed to new replies.