Simple Nivo Slider
Add a second caption custom field (1 post)

  1. David Ruszkowski
    Posted 4 years ago #

    I am using the Simple Nivo Slider particularly for the custom field caption feature. I am trying to figure out how to add a second custom field, kind of a description or sub-caption.

    I found this code in simple-nivo-slider.php:
    $caption = get_post_meta(get_the_id(), 'simple_nivo_caption', true);

    I am thinking I can define the other custom field like this:
    $caption2 = get_post_meta(get_the_id(), 'simple_nivo_sub_caption', true);

    Assuming this is the right way to go about it I am having trouble finding where the $caption is echoed to create the caption itelf. The code directly below this in the file appears to use it as the title for the image and not for the caption itself. <?php echo $linkhead ?><img src="<?php echo $imgsrc ?>" alt="" title="<?php echo $caption ?>" /><?php echo $linktail."\n" ?>

    Any help anyone could offer is greatly appreciated.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Nivo Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by David Ruszkowski
  • This topic is not resolved
  • WordPress version: 3.2.1