WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. David Ruszkowski
    Member
    Posted 2 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.

    Thanks.

    http://wordpress.org/extend/plugins/simple-nivo-slider/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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