From 1138844470ac4d47d2f0569cc427a7a0344b7074 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 13 Dec 2023 17:35:29 +0100 Subject: [PATCH] encapsulating suggested-publications section --- single-questions.php | 71 +++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/single-questions.php b/single-questions.php index f1ae0bc..4c46ca3 100644 --- a/single-questions.php +++ b/single-questions.php @@ -48,43 +48,46 @@ get_header(); )); ?> - -
- 'brochures', - 'posts_per_page' => 5, - 'orderby' => 'rand', - 'post_status' => 'publish', - 'meta_query' => array( - array( - 'key' => 'brochure_pdf', - 'compare' => 'EXISTS' - ) - ), - ); - $suggestedPublications = new WP_Query($args); - $pagePublicationsUrl = get_page_by_template('template-publications.php') ? get_permalink(get_page_by_template('template-publications.php')[0]->ID) : null; - ?> -
-
-

-

-
-
    - + +
    + 'brochures', + 'posts_per_page' => 5, + 'orderby' => 'rand', + 'post_status' => 'publish', + 'meta_query' => array( array( - 'brochuresPosts' => $suggestedPublications, + 'key' => 'brochure_pdf', + 'compare' => 'EXISTS' ) - ) - ?> -
- + ), + ); + $suggestedPublications = new WP_Query($args); + $pagePublicationsUrl = get_page_by_template('template-publications.php') ? get_permalink(get_page_by_template('template-publications.php')[0]->ID) : null; + ?> +
+
+

+

+
+
    + $suggestedPublications, + ) + ) + ?> +
+ +
-
+ +