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