Created
September 25, 2015 00:44
-
-
Save wpsoul/25cdcda01b03ce2cdc88 to your computer and use it in GitHub Desktop.
Nelio external image fix for Rehub theme
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
function get_post_thumb(){ | |
global $post ; | |
if ( has_post_thumbnail($post->ID) ){ | |
$image_url = get_post_meta( $post->ID, _nelioefi_url(), true ); | |
if ( !$image_url || strlen( $image_url ) == 0 ) | |
return false; | |
return $image_url; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment