get_the_post_thumbnail hack
-
I’m wondering if there is a way to insert values into the get_the_post_thumbnail function. Currently I’m using this line:
<?php echo get_the_post_thumbnail( $id, ‘medium’, $attr ); ?>
Obviously this returns the <img> for the given post within my loop. Let’s say that looks like this:
<img src=”/uploads/image-1.jpg” alt=”Test Image” />What I want to do is insert a value into that <img> string, while still using the get_the_post_thumbnail function. Is it possible?
I’m working with advanced captions for the jQuery Orbit slider (https://www.zurb.com/playground/orbit-jquery-image-slider).
Help! This has gotta be possible…
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘get_the_post_thumbnail hack’ is closed to new replies.