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.
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.
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>';
?>
How do I add it to the current code?
<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(home); } ?>
The template tag does not need to be edited. That code goes in a custom slideshow template.
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?
No, the instructions on that page are still valid, place it above this line:
</div><!-- .mslide -->
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!