Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joosep

    (@joosep)

    Solved. Reverted back to 1.2.2 and works now.

    Plugin Author shauno

    (@shauno)

    Hi joosep

    If you are using NGG v2.x, then getting the gallery ID can become a little more complex. To show a gallery field, you can use the following code in the gallery template:

    <?
    if(is_object($displayed_gallery) && isset($displayed_gallery->container_ids)) {
    	if(count($displayed_gallery->container_ids) == 1 && is_numeric($displayed_gallery->container_ids[0])) {
    		$gid = $displayed_gallery->container_ids[0];
    	}
    }
    ?>
    <?php echo nggcf_get_gallery_field($gid, "Your Gallery Field Name"); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fields do not appear for Galleries’ is closed to new replies.