WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Captions (descriptions) on slides (4 posts)

  1. shaalan
    Member
    Posted 1 year ago #

    I've gone through the documentation and the forum and still can't seem to get the caption OR description to show up on the slide. I have created a custom page template page-slides.php, and a custom slide template (meteor-slideshow.php. I inserted this code

    `<?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>';

    ?>`

    above this line:

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

    and the best I can get is the page title to display under the photo.

    check it out: http://www.anthemnews.com/slidshow/

    Can you please tell me where I might have gone wrong?

    I confess, I'm very new to this. I have put the slideshow template within the wp-bold theme folder. Is this the correct place for it? Or should it go loose in the Themes folder.

    http://wordpress.org/extend/plugins/meteor-slides/

  2. shaalan
    Member
    Posted 1 year ago #

    Oh, and I have also tried placing this code

    <p><?php the_title(); ?></p> above this line

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

    and had no results. Again, not sure if its the placement of the code, the placement of the file, or what that I'm getting wrong.

    Thanks.

  3. shaalan
    Member
    Posted 1 year ago #

    The minute I hit "post" I figured it out. My file wasn't updating. Now I just have to figure out how to keep the type relative to the bottom of the image frame and I'm good. Thanks for a great plugin.

  4. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome, I'm glad you got it figured out!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic