Last active
October 6, 2016 14:50
-
-
Save anthonydelgado/d4061c1a719b1615dc0233f8654f4233 to your computer and use it in GitHub Desktop.
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 $coverimage = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); | |
// Evaluates if $coverimage is set | |
if (empty($coverimage)) { | |
$coverimage = 'http://placehold.it/350x150'; | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment