diff --git a/acf-blocks/home/questions-frequentes/questions-frequentes.php b/acf-blocks/home/questions-frequentes/questions-frequentes.php index eaaa114..167b795 100644 --- a/acf-blocks/home/questions-frequentes/questions-frequentes.php +++ b/acf-blocks/home/questions-frequentes/questions-frequentes.php @@ -41,14 +41,8 @@ if (!function_exists('get_automatic_post')) { foreach ($thematique_terms as $key => $thematique) { if ( - $thematique->slug === "durabilite" - || $thematique->slug === "duurzaamheid" - || $thematique->slug === "au-quotidien" - || $thematique->slug === "dagelijks" - || $thematique->slug === "aides-financieres" + $thematique->slug === "aides-financieres" || $thematique->slug === "financiele-steun" - || $thematique->slug === "gezondheid-veiligheid-hygiene" - || $thematique->slug === "sante-securite-salubrite" ) continue; // $thematique_datas = get_term_by('slug', $thematique->slug, 'thematiques'); @@ -56,6 +50,9 @@ if (!function_exists('get_automatic_post')) { $manual_data = get_field($thematique->slug . '_manual_data'); $post_datas = $manual_data ? $manual_data : get_automatic_post($thematique); + + if (!$post_datas) continue; + get_template_part( 'template-components/cards/card-frequent-question', null,