Created
April 28, 2018 16:28
-
-
Save EastSideCode/384a7d885d4b269c94bf88767db2f025 to your computer and use it in GitHub Desktop.
Get Featured image information in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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