From 2f5960df695386547334be4e46fb44c2ea3f1e3b Mon Sep 17 00:00:00 2001 From: Antoine M Date: Fri, 23 May 2025 18:05:54 +0200 Subject: [PATCH] ADD Implement single revue template with dynamic article retrieval and structured layout for improved content presentation. --- single-revues.php | 127 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 single-revues.php diff --git a/single-revues.php b/single-revues.php new file mode 100644 index 0000000..5218772 --- /dev/null +++ b/single-revues.php @@ -0,0 +1,127 @@ + + + 'articles', + 'posts_per_page' => 3, + 'orderby' => 'date', + 'order' => 'DESC', + 'meta_query' => array( + array( + 'key' => 'related_revue', + 'value' => $current_issue->ID, + 'compare' => '=', + ), + ), +)); + + +$articles = get_field('articles', $current_issue->ID); + +write_log($articles); + + +?> + + +
+ + + + +
+
+
+ +

+
+

+ Numéro + 25 +

+
+

Publication

+ +
+
+

Mis à jour

+ +
+
+
+
+ 'thumbnail']); ?> +
+ +
+ +
+ have_posts()) : ?> + have_posts()) : $issue_related_articles->the_post(); ?> + ID, 'etiquettes'); ?> + +
+

+ + +

+
+ + +
+ + + + + + + + + + + + +