WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Custom Fields
[resolved] Please NGG Custom field code not working (2 posts)

  1. ajobiah
    Member
    Posted 1 year ago #

    Please am using the NextGEN Gallery and i have added custom fields to the IMAGES inside the galleries i have created. Currently i have to galleries namely; Architect Drawing and land sales but i have added the custom fields to only "land sales".

    Please i want to know where i can add the code:
    "<?php echo $image->ngg_custom_fields["Your Field Name Here"]; ?>"

    to the "gallery.php" file. i tried adding it to this portion:
    <?php foreach ( $images as $image ) :?>

    <?php echo $image->ngg_custom_fields["Price"]; ?>
    <?php echo $image->ngg_custom_fields["Location"]; ?>
    <?php echo $image->ngg_custom_fields["size"]; ?>

    with the field names but all the fields names floated on the thumbnails on my site.

    Please what mistake did i make. thank you

    http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ajobiah
    You haven't made a mistake. It sounds like the plugin is doing exactly what it is meant to. You need to understand the HTML that is being used to output the images, and the custom fields you are adding. If you don't understand HTML and CSS, it's best you get some help from a friend that does.
    I can't tell you exactly where to put the code and what tags to wrap it in, as everyone's requirements are different.

    Good luck, and I hope you enjoy the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.