diff --git a/single-questions.php b/single-questions.php index 96147d3..5fd5f77 100644 --- a/single-questions.php +++ b/single-questions.php @@ -37,10 +37,6 @@ get_header(); - - get_the_ID(), 'title' => __("Retrouvez nos conseils sur l'isolation dans notre brochure écrite par des experts", "homegrade-theme__texte-fonctionnel"), @@ -59,17 +55,21 @@ get_header(); '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; - ?>

- -
- -