From adce6ca33108bd22ca5653dce85804a8e7ae488a Mon Sep 17 00:00:00 2001 From: Antoine M Date: Fri, 27 Oct 2023 14:23:55 +0200 Subject: [PATCH] updating news templating --- single-post.php | 82 ++++++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 39 deletions(-) diff --git a/single-post.php b/single-post.php index f921945..41490dd 100644 --- a/single-post.php +++ b/single-post.php @@ -2,62 +2,66 @@ get_header(); $args = array( 'meta_key' => '_wp_page_template', - 'meta_value' => "template-news.php" + 'meta_value' => "template-archive-news.php" ); $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null; ?> +
"> - - - -
+ + + +
+ - get_the_terms(get_the_ID(), 'news-type'), - "title" => get_the_title(), - "thumbnail" => get_the_post_thumbnail(get_the_ID(), "full", array('class' => 'news-heading-box__thumbnail')), - "published" => get_the_date() - - )); - ?> -
get_the_terms(get_the_ID(), 'news-type'), + "title" => get_the_title(), + "thumbnail" => get_the_post_thumbnail(get_the_ID(), "full", array('class' => 'news-heading-box__thumbnail')), + "published" => get_the_date() + + )); ?> +
+ +
-
- - + + -