slug; $thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon']; $args = array( 'post_type' => 'conseils', 'tax_query' => array( array( 'taxonomy' => 'thematiques', 'field' => 'slug', 'terms' => $mainThematique->slug, ) ) ); $relatedConseils = new WP_Query($args); $relatedConseilsUrl = get_permalink($relatedConseils->posts[0]->ID) ?? null; ?>
"> get_the_ID(), )); ?>
">
'questions', 'posts_per_page' => 2, 'post_status' => 'publish', 'orderby' => 'rand', 'post__not_in' => array(get_the_ID()), 'tax_query' => array( array( 'taxonomy' => 'thematiques', 'field' => 'term_id', 'terms' => $mainThematique->term_id, ) ) ); $otherQuestions = new WP_Query($args); $previousPost = $otherQuestions->posts[0]; $nextPost = $otherQuestions->posts[1]; ?>
get_the_ID(), 'subtitle' => $mainThematique->name, 'title' => __("Les conseillères et conseillers Homegrade vous guident", "homegrade-theme__texte-fonctionnel"), 'hasInfoCapsule' => false, 'ctaUrl' => $relatedConseilsUrl, 'ctaTitle' => __("Parcourir nos conseils ", "homegrade-theme__texte-fonctionnel"), 'ctaTarget' => "_self", )); ?>
'brochures', 'posts_per_page' => 5, 'post_status' => 'publish', 'orderby' => 'rand', 'meta_key' => 'brochure_pdf', 'meta_value' => false, 'meta_compare' => '!=', 'tax_query' => array( array( 'taxonomy' => 'thematiques', 'field' => 'term_id', 'terms' => $mainThematique->term_id, ) ) ); $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, ) ) ?>