Tag Info

New answers tagged

0

Retrieve caption of image correct format is <?php $post_thumbnail_id = get_post_thumbnail_id( $post_id ); ?> <?php function wp_get_attachment( $attachment_id ) { $attachment = get_post( $attachment_id ); return array( 'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), 'caption' => ...



Top 50 recent answers are included