Title: [Plugin: NextGEN Custom Fields] NextGen Galleryview and Custom Fields
Last modified: August 20, 2016

---

# [Plugin: NextGEN Custom Fields] NextGen Galleryview and Custom Fields

 *  [fwunder](https://wordpress.org/support/users/fwunder/)
 * (@fwunder)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-nextgen-custom-fields-nextgen-galleryview-and-custom-fields/)
 * I’m sure I’m missing something simple with picture ID (pid), but I simply cannot
   get my custom fields to work with GalleryView. The relevant GalleryView code:
 *     ```
       $final = array();
           foreach($pictures as $picture) {
             $aux = array();
             $aux["price"] = $image->ngg_custom_fields["Price:"]; //custom field
             $aux["title"] = $picture->alttext; // $picture->alttext;
             $aux["desc"]  = $picture->description;
       (etc.)
       ```
   
 * And
 *     ```
       $out .= "  <span class=\"price-overlay\"> " . "<h2>" . $picture["price"]  . "</h2>"
       (etc.)
       ```
   
 * Thanks!!
 * [http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/](http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/)

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

 *  Thread Starter [fwunder](https://wordpress.org/support/users/fwunder/)
 * (@fwunder)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-nextgen-custom-fields-nextgen-galleryview-and-custom-fields/#post-2611393)
 * I think I sorted it out. This seems to work fine:
 *     ```
       $final = array();
           foreach($pictures as $picture) {
             $aux = array();
             $aux["price"] = nggcf_get_field($picture->pid, 'Price:');
       (etc.)
       ```
   
 * And
 *     ```
       $out .= "  <span class=\"price-overlay\"> " . "<h2>" . $picture["price"]  . "</h2>"
       (etc.)
       ```
   
 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-nextgen-custom-fields-nextgen-galleryview-and-custom-fields/#post-2611414)
 * Yip, as you found out, not all the ‘templates’ are actually in the /view/ directoy.
   I think it’s a legacy thing with NGG, as the early versions had no front end 
   templates from what I remember.
 * I’m glad you figured the solution out and got it working for you!
 * _[ [Signature moderated.](http://codex.wordpress.org/Forum_Welcome#Signatures)]_

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

The topic ‘[Plugin: NextGEN Custom Fields] NextGen Galleryview and Custom Fields’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-custom-fields.svg)
 * [NextGEN Custom Fields](https://wordpress.org/plugins/nextgen-gallery-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shauno](https://wordpress.org/support/users/shauno/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-nextgen-custom-fields-nextgen-galleryview-and-custom-fields/#post-2611414)
 * Status: not resolved