Skip to content

Instantly share code, notes, and snippets.

@wpsoul
Created September 25, 2015 00:44
Show Gist options
  • Save wpsoul/25cdcda01b03ce2cdc88 to your computer and use it in GitHub Desktop.
Save wpsoul/25cdcda01b03ce2cdc88 to your computer and use it in GitHub Desktop.
Nelio external image fix for Rehub theme
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