From 8afb801d3b8171c1d60bacbd34423d65025d5d88 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 28 Nov 2023 17:00:46 +0100 Subject: [PATCH] =?UTF-8?q?moving=20get=C2=B0automatic=20posts=20from=20ut?= =?UTF-8?q?ilities=20to=20blok=20questiopns=20frequents=20template=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/utilities.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index e131c46..a7e254d 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -73,16 +73,16 @@ function getMainThematique($thematique) // Get automatic post used in BLOCK QUESTIONS FREQUENTES -function get_automatic_post($post_thematique) -{ - $automatic_query_args = array( - 'post_per_page' => 1, - 'post_status' => 'publish', - 'post_type' => 'questions', - 'thematiques' => $post_thematique, - ); - return get_posts($automatic_query_args)[0] ?? null; -} +// function get_automatic_post($post_thematique) +// { +// $automatic_query_args = array( +// 'post_per_page' => 1, +// 'post_status' => 'publish', +// 'post_type' => 'questions', +// 'thematiques' => $post_thematique, +// ); +// return get_posts($automatic_query_args)[0] ?? null; +// } // TO GET ARCHIVE RELATED PAGES BY TEMPLATE