How to get descriptions to appear in a slide show
-
I did some major searching on how to put the description on a slide show. There was lots of questions and some answers that didn’t work. The ray of hope was a posting from 2 years ago that went “Hey, no idea why you didn’t get a response, here is the one line to change”. Sadly they posted the code and the forum monster ate it. (MUST use Pastebin)
So I spent time last night and got it to work. The instructions are here
It really is simple. Not sure why the great people at NextGenGallery have not made this a feature.
Good luck!
about Line 140 you should see:
<img data-image-id='<?php echo esc_attr($image->pid); ?>’
In front of it put:
<p><?php echo ($image->description)?> </p> <!- Your name here ->
that will allow tags to be in the description.
Or if you work with bozo’s
<p><?php echo echo esc_attr($image->description)?> </p> <!- Your name here ->
to rip out the tags.
I put my name in the comments to note that I’ve changed something. My code is shown below. Note that I want ALL the
captions to be in italics, so I’ve wrapped the text with that. It’s saves me from doing it in each caption.<p><i><?php echo ($image->description)?></i> </p> <!- Astro 18 May 2014->
<img data-image-id='<?php echo esc_attr($image->pid); ?>’
- The topic ‘How to get descriptions to appear in a slide show’ is closed to new replies.