Hi Christopher,
We don’t have a way to do that in Pro at the moment but it is possible by extending Dynamic Content with some custom code in functions.php
of a child theme.
add_filter('cs_dynamic_content_post-custom', function( $result, $field, $args ){
global $post;
if (! is_a( $post, 'WP_Post' ) ) {
return $result;
}
if ($field === 'caption') {
$result = wp_get_attachment_caption( get_post_thumbnail_id( $post ) );
}
return $result;
},10, 3);
That code will let you do {{dc:post-custom:caption}}
to retrieve the caption of the current thumbnail. I’ll make a note so we can consider possibly making it a new Dynamic Content option but that should work in the meantime.