Alex Barber | Digital Artist

time to push the pixels

Get WordPress image caption

http://stackoverflow.com/questions/1616281/is-there-a-function-to-get-the-caption-for-an-image-in-wordpress

“Turns out captions are stored as post excerpts.”


<?php echo $post->post_excerpt; ?>

Next Post

Previous Post

Leave a Reply

© 2024 Alex Barber | Digital Artist