Title: custom field for javascript slideshow
Last modified: August 20, 2016

---

# custom field for javascript slideshow

 *  [alitscha](https://wordpress.org/support/users/alitscha/)
 * (@alitscha)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/)
 * Hi,
 * the issue sounds simple but I can’t figure out the solution: I’d like a custom
   text field for each image in the slideshow, and I need to use the javascript 
   slideshow not the flash one.
 * It is really the last thing I need to do in a website I am finishing, any help
   is more than appreciated!
 * [http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/](http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [alitscha](https://wordpress.org/support/users/alitscha/)
 * (@alitscha)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636514)
 * Somebody already gave hints about it in the past, but the same code doesn’t seem
   to work for me, what am I doing wrong?I added the custom filed “credit” in the
   settings and I did put some text in there. Yet not showing when i see the javascript
   slideshow…thanks in advance!
 *     ```
       <?php if ($gallery->show_slideshow) { ?>
       	<!-- Slideshow link -->
       	<div class="slideshowlink">
       		<a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
       		</a>
       	</div>
       	 <p><?php echo $image->ngg_custom_fields['credit']; ?></p>
       <?php } ?>
       ```
   
 *  Thread Starter [alitscha](https://wordpress.org/support/users/alitscha/)
 * (@alitscha)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636518)
 * just one more detail, I guess the solution is near and one quick advice would
   help a lot:
 * I can add custom fields for example under the thumbnails, but not in the slideshow
   mode. SO I am probably adding the code for the slideshow mode in the wrong place,
   where do I do that?
 * THX!
 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636526)
 * Hi alitscha
 * As far as I can remember, the NGG slideshow outputs its markup inside the actual
   plugin files. This makes editing it to add the custom fields tricky, because 
   you will lose your changes when you have to update NGG.
    I can’t look at it in
   more detail right now (I’m at my day job), but I will try have a look in more
   detail later, and see if there is a ‘hack’ around this.
 *  Thread Starter [alitscha](https://wordpress.org/support/users/alitscha/)
 * (@alitscha)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636527)
 * Many thanks Shauno, let me know!
 * In the meanwhile I thought about a possible workaround: I installed the jQuery
   GalleryView add on and I’ll try to modify that template to achieve what I want.
   I’ll post any solution I might find.
 * Best!
 *  Thread Starter [alitscha](https://wordpress.org/support/users/alitscha/)
 * (@alitscha)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636541)
 * Update: no way out for the moment. I guess my skills in tweaking code are not
   enough for this specific hack.
 * It would be a pity to start over with a different slider/rotator, any hint about
   where and how to place the code would greatly welcomed, and I’ll keep in mind
   the donate button of course!
 * Best
 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636676)
 * Hi alitscha
    I had a quick look last night, and I think it looks like it will
   be pretty difficult to get the custom fields to display on the JS slideshow. 
   I didn’t have too much free time yesterday, so I will try again tonight to see
   if there’s a way in there. But I’m not sure it’s going to be feasible, or even
   possible without major code changes.
 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636716)
 * Ok, so I’ve had a proper look, and I this isn’t possible without major changes.
   
   The gallery plugin outputs a bunch of JS directly into the page, calling an included
   jQuery plugin. That plugin in-turn, calls another plugin to deal with the transitions
   etc. The images are not in any sort of containers, so adding fields and showing/
   hiding them becomes even more difficult.
 * Basically, there’s just too much going on to be able to add to it.
 * Sorry I can’t help you with this one 🙁

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘custom field for javascript slideshow’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-custom-fields.svg)
 * [NextGEN Custom Fields](https://wordpress.org/plugins/nextgen-gallery-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery-custom-fields/reviews/)

## Tags

 * [caption](https://wordpress.org/support/topic-tag/caption/)
 * [custom text](https://wordpress.org/support/topic-tag/custom-text/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 7 replies
 * 2 participants
 * Last reply from: [shauno](https://wordpress.org/support/users/shauno/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/custom-field-for-javascript-slideshow/#post-3636716)
 * Status: not resolved