1, 'post_status' => 'publish', 'post_type' => 'questions', 'include_children' => true, ); $posts = new WP_Query($automatic_query_args); return $posts->posts[0] ?? null; } } ?>

'thematiques', 'hide_empty' => false, 'parent' => 0 )); foreach ($thematique_terms as $key => $thematique) { if ( $thematique->slug === "renovation-circulaire" || $thematique->slug === "circulaire-renovatie" || $thematique->slug === "au-quotidien" || $thematique->slug === "dagelijks" ) continue; // $thematique_datas = get_term_by('slug', $thematique->slug, 'thematiques'); $manual_data = get_field($thematique->slug . '_manual_data'); $post_datas = $manual_data ? $manual_data : get_automatic_post($thematique->slug); get_template_part( 'template-components/cards/card-frequent-question', null, array( 'thematique' => $thematique, 'post_ID' => $post_datas->ID, 'post_title' => $post_datas->post_title, 'post_excerpt' => $post_datas->post_excerpt, ) ); } ?>