From 21d133bdddec20b99a8568117812849983572240 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 6 Dec 2023 16:26:42 +0100 Subject: [PATCH] refining page --- taxonomy-thematiques.php | 135 +++++++++++++++++++-------------------- 1 file changed, 64 insertions(+), 71 deletions(-) diff --git a/taxonomy-thematiques.php b/taxonomy-thematiques.php index bba4559..6e4fe82 100644 --- a/taxonomy-thematiques.php +++ b/taxonomy-thematiques.php @@ -77,87 +77,80 @@ $relatedTaxQuestions = new WP_Query($query_args); ) ); ?> -
- - - +
+

+ + found_posts ?> + + + + + + + + + + + +

+
+ + + +
+ +
+ + +
+
+ +
+
- --> - + +
+
+
+ +
+ + - have_posts()) : while ($relatedTaxQuestions->have_posts()) : $relatedTaxQuestions->the_post(); ?> - + $relatedTaxQuestions, + ) + ) + ?> - $questionCurrentSubthematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? null; - $relatedFichesConseilsSubThematiqueQuery = new WP_Query(array( - 'post_type' => 'conseils', - 'posts_per_page' => 1, - 'tax_query' => array( - array( - 'taxonomy' => 'thematiques', - 'field' => 'term_id', - 'terms' => $questionCurrentSubthematique->term_id, - ) - ) - )); - $relatedFichesConseilsThematiqueQuery = new WP_Query(array( - 'post_type' => 'conseils', - 'posts_per_page' => 1, - 'tax_query' => array( - array( - 'taxonomy' => 'thematiques', - 'field' => 'term_id', - 'terms' => $mainThematique->term_id, - ) - ) - )); - $relatedFicheConseil = $relatedFichesConseilsSubThematiqueQuery->posts[0] ?? $relatedFichesConseilsThematiqueQuery->posts[0] ?? null; - - // $test = $relatedSubThematiqueQuery->posts[0] ?? - echo '
';
-				// print_r($questionCurrentSubthematique);
-				// print_r($relatedFichesConseilsSubThematiqueQuery->posts[0]->ID);
-				// print_r($relatedSubThematiqueConseil->posts[0]->ID);
-				echo '
'; - - ?> -
- - -
- -
-
-
- - - - -
-
- - -