diff --git a/template-new-content.php b/template-new-content.php index 15b272a..bd16af3 100644 --- a/template-new-content.php +++ b/template-new-content.php @@ -11,12 +11,12 @@

- +
get_the_post_thumbnail_url( $post_thumbnail_id ),'class' => 'lazy-load expand-image', 'title' => get_post($post_thumbnail_id)->post_title ]); + $post_thumbnail_id = get_post_thumbnail_id(); + the_post_thumbnail('post-thumbnail', ['data-src' => get_the_post_thumbnail_url( $post_thumbnail_id ),'class' => 'lazy-load expand-image', 'title' => get_post($post_thumbnail_id)->post_title ]); ?> - +
>