WordPress.org

Support

Support » Plugins and Hacks » NextGEN Custom Fields » [Resolved] Gallery custom field not displaying in album view

[Resolved] Gallery custom field not displaying in album view

  • I’m using wp 3.2.1, nextgen1.8.3, and nextgen cf 1.1.2

    I’m try to get the custom fields to display at the album view level (eg: album-extend.php etc). It seems using the code provided in the FAQ will not echo the field within the <?php foreach ($galleries as $gallery) : ?> loop. I’m using <?php echo nggcf_get_gallery_field($gallery->ID, "tag"); ?> to try and display the field within the above loop. I’ve been able to get the field to display successfully within the gallery view level, but I really need it to be show at album level. I have no clue why it shouldn’t be working. Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • figured it out myself, apparently on the album view you have to use gid instead of ID. <?php echo nggcf_get_gallery_field($gallery->gid, "services"); ?> wonder why they had to change it. Oh well.

    Thanks man! That save me some hours of work! =]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Gallery custom field not displaying in album view’ is closed to new replies.
Skip to toolbar