diff --git a/includes/forms/field-OrderBrochureList.php b/includes/forms/field-OrderBrochureList.php index 9ef0b82..d3d8c55 100644 --- a/includes/forms/field-OrderBrochureList.php +++ b/includes/forms/field-OrderBrochureList.php @@ -17,11 +17,13 @@ if (class_exists('GF_Field')) { 'post_type' => 'brochures', 'posts_per_page' => -1, 'post_status' => 'publish', - 'order' => 'DESC', - 'orderby' => 'date', + 'order' => 'ASC', + 'orderby' => 'title', 'meta_key' => 'brochure_pdf', 'meta_value' => false, 'meta_compare' => '!=', + 'post__not_in' => [4431, 4436, 7222, 5825, 6505] + )); $choices = []; diff --git a/includes/forms/field-OrderDocumentsList.php b/includes/forms/field-OrderDocumentsList.php index 3bd87b5..8ee2286 100644 --- a/includes/forms/field-OrderDocumentsList.php +++ b/includes/forms/field-OrderDocumentsList.php @@ -5,17 +5,10 @@ if (class_exists('GF_Field')) { { public $type = 'order_documents_list'; - - private function buildChoicesArray() { $posts_array = [ - [ - 'text' => 'La synthèse des primes', - 'ID_fr' => 7153, - 'ID_nl' => 7157, - ], [ 'text' => 'Flyer Général', 'ID_fr' => 7425, @@ -29,7 +22,7 @@ if (class_exists('GF_Field')) { [ 'text' => 'Jeu memo Sherif', 'ID_fr' => 7419, - 'ID_nl' => 7419, + 'ID_nl' => 7464, ], ]; @@ -41,6 +34,7 @@ if (class_exists('GF_Field')) { $choices[] = [ 'title' => get_the_title($id), + 'text' => get_the_title($id), 'ID' => $id, ]; } @@ -129,12 +123,10 @@ if (class_exists('GF_Field')) { private function PrettyListDocumentOrder($value) { $documentOrderPreviewHtml = '