Support » Plugin: Meteor Slides » [Plugin: Meteor Slides] Captions for slide show images

  • I have followed the post noted below to include captions for each of my slide show images, but as of yet no success.

    meteor-slides.css and meteor-slideshow.php have been moved to my theme directory. Paths have been changed to reflect the move of the slide show navigation.

    I have updated meteor-slideshow.php with the following, and confirmed that there is copy describing the image within the media library. Code looks 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>’;


    </div><!– .mslide –>


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


    Hey, I would try to use the title of the slide post as the caption instead. It is easier to add and easier to manage since you can edit the title right from the slide post and you don’t need to dig in and edit the image metadata.

    Check out the documentation on using a custom slideshow template for more information on how to use the titles.

    Thanks! I will give this a try today.

    Plugin Author Josh Leuze


    No problem, hopefully that works better!

    In case you want to display the caption instead of just displaying the title, I found this code to be useful:

    <?php $excerpt = get_post( get_post_thumbnail_id() )->post_excerpt; echo $excerpt; ?>

    Add it to the custom slide template file you create in your theme, prior to the closing </div><!-- .mslide --> so that it’s the last thing loaded in each loop.

    Hat tpp to for this snippet.

    P.S> Jleuze – Great plugin. Please add this to the documentation. I spent some time looking for it.

    Plugin Author Josh Leuze


    Thanks for sharing, I’ll add it to the documentation so it’s easier to find.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Meteor Slides] Captions for slide show images’ is closed to new replies.