NextGEN Custom Fields
How to add Field Title (3 posts)

  1. cvenegasf
    Posted 6 years ago #

    Hi, I was wondering how to display the field name before the text of the field. i.e.:

    Name of gallery: Nice Gallery
    Place: Somewhere
    Date: Sometime

    This is actually what it display:
    Nice Gallery

    Thanks for this great plug in!
    I hope ypu understand what I mean.(Sorry for my english)

  2. ciaranm
    Posted 6 years ago #

    There might be another way but i did it by simply adding the text into my nextgen gallery theme.

    In gallery.php I just put the word (Place, Date etc) in front of the php code to add the custom fields.

    Eg, I used the following code to add the word 'By' in front of my artist name custom field.

    <div class="img-artist">By <?php echo $image->ngg_custom_fields["artist1"]; ?> </div>

  3. cvenegasf
    Posted 6 years ago #

    Thanks a lot ciaranm! It's really helpful. I will try it. I have like 30 galleries and some of them need different custom fields, I'll give try to your solution. Thanks for your time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic