Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi James, if you are using a custom slideshow template and you add this line to it as per the documentation, it should show up:

    <p><?php the_title(); ?></p>

    If you have that setup in your theme and you aren’t seeing the slide title, check the source code to see if they are just hidden. You may need to adjust the z-index of the captions to bump them up above the slides or change the positioning.

    Thread Starter JamesDibben

    (@jamesdibben)

    Thanks for the response.

    It’s not the slide title I’m after. It’s getting the actual uploaded image description that I want added.

    Plugin Author Josh Leuze

    (@jleuze)

    Ah, you can get the featured image description like this:

    <?php // Get the featured image's description
    
    	$ms_thumb_id = get_post_thumbnail_id($id);
    
    	$ms_description = esc_attr( get_post_field( 'post_content', $ms_thumb_id ) );
    
    	echo '<p>' . $ms_description . '</p>';
    
    ?>
    Thread Starter JamesDibben

    (@jamesdibben)

    How do I add it to the current code?

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(home); } ?>

    Plugin Author Josh Leuze

    (@jleuze)

    The template tag does not need to be edited. That code goes in a custom slideshow template.

    Thread Starter JamesDibben

    (@jamesdibben)

    Okay, I’ve followed the instructions on that page and have meteor-slideshow.php in my theme directory.

    Do I just add the code above </div><!– .meteor-slides –> to get it to work?

    Plugin Author Josh Leuze

    (@jleuze)

    No, the instructions on that page are still valid, place it above this line:

    </div><!-- .mslide -->

    Thread Starter JamesDibben

    (@jamesdibben)

    Ahhh, sorry that I was unable to find that spot earlier. Major brain fart I guess.

    Now it’s time to hit the css file and get the text into the right spot.

    Thanks!

    Plugin Author Josh Leuze

    (@jleuze)

    No problem James!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Meteor Slides] Add Image Caption’ is closed to new replies.