Skip to content

Commit

Permalink
Featured area image issue AyeCode#43
Browse files Browse the repository at this point in the history
  • Loading branch information
1naveengiri committed Aug 23, 2019
1 parent 1c84586 commit f0aaca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content-featured-area.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<div id="sd-featured-img" class="featured-img" <?php
$featured_image = apply_filters( 'sd_featured_image', '' );

if (!$featured_image && has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
if ( !$featured_image && has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
$featured_image = $full_image_url[0];
} else {
} elseif( !$featured_image ) {
$featured_image = SD_DEFAULT_FEATURED_IMAGE;
}
?>>
Expand Down

0 comments on commit f0aaca0

Please sign in to comment.