Last active
December 12, 2020 16:39
-
-
Save someguy9/e69cd2af681be8f68f30a95d29f1d034 to your computer and use it in GitHub Desktop.
Return WordPress post featured image URL
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 | |
//Display the featured post URL (you can replace 'medium' with a different image size) | |
echo get_the_post_thumbnail_url( get_the_ID(), 'medium' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment