• I’ve been through all your post and instructions with no luck I’m trying to add some text below each image of the gallery.

    I had it working fine on a site under the old nextgen but cannot in the new one. I am editing the right file which is index.php because I can replace the code line to just display normal text or display inbuilt description field and it works fine however I cannot get the code to work to display the custom field code is as below

    <?php echo $image->ngg_custom_fields['Product-Item']; ?>

    My site is not yet live so unable to give you a link sorry.

    https://www.ads-software.com/plugins/nextgen-gallery-custom-fields/

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

    (@shauno)

    Hi locka

    The docs are a bit outdated, I really need to fix them ??

    You need to use the following tag to display the custom field with NGG v2.x:
    <?php echo nggcf_get_field($image->pid, 'Field Name'); ?>

    Let me know if you have any other issues

    Thread Starter Adrian

    (@locka)

    Thanks very much I now have text however what I was posting was a wordpress shortcut for plugin WP Ultra simple Paypal Cart as below

    [wp_cart:Sunset over The millennium Dome :price:[SIZE|6×4 – £10,10|7×5 – £20,20|8×6 – £30,30|9×5 – £40,40|12×8 – £50,50]:end]

    This worked fine when I was use old nextgen in the imagebrowser window however this time I decided it would be better to have it posted under each image however this time it’s not working i just see text and I don’t remember having to change anything else for it to work.

    Plugin Author shauno

    (@shauno)

    Something like this would probably work:

    <?php echo do_shortcode(nggcf_get_field($image->pid, 'Field Name')); ?>

    Thread Starter Adrian

    (@locka)

    thanks tried something similar myself but all I get is text back ill have a play further

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘unable to add item under each image’ is closed to new replies.