From 79e70e1736f3b7539da6bb34b84b88c2301bb37b Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Wed, 2 Nov 2022 17:27:24 -0400 Subject: [PATCH] Show featured image on /new page. --- template-new-content.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ]); ?> - +
>