From dff18dd97f6a02ed42f636f018f8b9b8cf0669a9 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 28 Nov 2023 17:01:11 +0100 Subject: [PATCH] moving get automatic posts function from utilities to blok questiopns frequents template file --- includes/utilities.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index a7e254d..7de7fc0 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -67,24 +67,6 @@ 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; -// } - - // TO GET ARCHIVE RELATED PAGES BY TEMPLATE function get_page_by_template($template = '') {