From 8077f524a3104323cc042c57a67897da5e65d8c0 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 9 Nov 2023 14:27:27 +0100 Subject: [PATCH] working on singles --- single-jobs.php | 11 ++++++++--- single-post.php | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/single-jobs.php b/single-jobs.php index 3409319..39fcbb8 100644 --- a/single-jobs.php +++ b/single-jobs.php @@ -1,5 +1,10 @@ '_wp_page_template', + 'meta_value' => "template-archive-jobs.php" +); +$relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null; ?> @@ -18,7 +23,7 @@ get_header();
  • - +
  • @@ -35,9 +40,9 @@ get_header(); HEADING BOX ---------------*/ ?> get_the_title(), - "thumbnail" => get_the_post_thumbnail(get_the_ID(), "full", array('class' => 'news-heading-box__thumbnail')), + "thumbnail" => get_the_post_thumbnail(get_the_ID(), "full", array('class' => 'heading-box--jobs__thumbnail')), "published" => get_the_date(), "subtitle" => __("Offre d'emploi", "homegrade-theme__texte-fonctionnel"), diff --git a/single-post.php b/single-post.php index ae3e3c8..5291082 100644 --- a/single-post.php +++ b/single-post.php @@ -40,10 +40,10 @@ $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null; HEADING BOX ---------------*/ ?> 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')), + "thumbnail" => get_the_post_thumbnail(get_the_ID(), "full", array('class' => 'heading-box--news__thumbnail')), "published" => get_the_date() ));