Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get Featured image information in WordPress
<?php $image_data = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "thumbnail" ); ?>
<?php $image_width = $image_data[1]; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.