Support » Plugin: NextGEN Custom Fields » [Plugin: NextGEN Custom Fields] Can't get custom field to echo

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

    (@shauno)

    Is the field you are showing a ‘gallery’ custom field, or and ‘image’ custom field?

    Are you putting the tag in the correct ngg template?

    On the album page the correct path to the gallery ID is $gallery->gid

    In that case following should work:
    <?php echo nggcf_get_gallery_field($gallery->gid, "Date"); ?>

    Hello — I’m ok with custom fields, but the question I have is which template to enter the
    <?php echo nggcf_get_gallery_field($gallery->ID, "testme"); ?> code into. There are 78 temnplates in NextGen. I think the code goes into YOUR template, but I can’t find a loop in which to place it. Saying “Make sure you add the fields you want to the correct place,” is not that helpful to code illiterates like me.

    Not being critical here and know I’m being dense, but could you be a bit more specific (like the code in the place to enter looks like this ….) to help out us PHP dummies?

    Thanks

    Plugin Author shauno

    (@shauno)

    I count 9 templates. Templates are the files NGG uses to output images. Templates are not just files that end in .php.

    The templates are in the /view/ directory in the NGG plugin directory. As in the FAQ (FAQ stands for Frequently Asked Questions), it says the "For instance, in nextgen-gallery/views/gallery.php, that would be $image->pid in the foreach loop (roughly line 38 in NGG 1.2.1)"

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Custom Fields] Can't get custom field to echo’ is closed to new replies.