From 34f2672aeca6e980c145a8284921bdff35b92b11 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 9 Jun 2025 14:56:54 +0200 Subject: [PATCH] REFACTORING and ehancing FEATURES --- single-revues.php | 117 ++++++++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 50 deletions(-) diff --git a/single-revues.php b/single-revues.php index 7e81c62..37e0873 100644 --- a/single-revues.php +++ b/single-revues.php @@ -3,19 +3,7 @@ 'articles', - 'posts_per_page' => 3, - 'orderby' => 'date', - 'order' => 'DESC', - 'meta_query' => array( - array( - 'key' => 'related_revue', - 'value' => $current_issue->ID, - 'compare' => '=', - ), - ), -)); +$issue_related_articles = get_field('articles', $current_issue->ID); $articles = get_field('articles', $current_issue->ID); ?> @@ -23,53 +11,82 @@ $articles = get_field('articles', $current_issue->ID);
- -
-
-
-
- have_posts()) : ?> - have_posts()) : $issue_related_articles->the_post(); ?> - ID, 'etiquettes'); ?> +
-
-

- + + + + + -

-
- -