diff --git a/includes/api.php b/includes/api.php
index f3468e7..4c05c38 100644
--- a/includes/api.php
+++ b/includes/api.php
@@ -98,7 +98,7 @@ function build_search_artisan_posts_cards($request)
if ($newsPostsDatas->found_posts === 0) {
- $html_template = "
 . "/resources/img/illustrations/Homegrade_resultats-filtres-cactus.svg)
" . __("Aucun résultat trouvé", "metiers-patrimoine-theme") . "
" . __("Essayez d'ajouter un filtre supplémentaire pour trouver plus de résultats", "metiers-patrimoine-theme") . "
";
+ $html_template = " . "/resources/img/illustrations/Homegrade_resultats-filtres-cactus.svg)
" . __("Aucun résultat trouvé", "metiers-patrimoine-theme") . "
" . __("Essayez d'ajouter un filtre supplémentaire pour trouver plus de résultats", "metiers-patrimoine-theme") . "
";
}
$response_data = array(
'html_template' => $html_template,
@@ -118,20 +118,6 @@ function build_search_artisan_posts_cards($request)
function debugQueryTest()
{
- $taxQuery = array(
- 'taxonomy' => 'metiers',
- 'terms' => array(17, 18, 19, 20),
- 'field' => 'term_id'
- );
-
- $metaQuery = array(
- array(
- 'key' => 'state',
- 'value' => "brussels",
- 'compare' => '='
- )
- );
-
$args = array(
"status" => "publish",
"post_type" => "artisans",
@@ -141,6 +127,14 @@ function debugQueryTest()
's' => "Atelier Schrauwen",
);
$newsPostsDatas = new WP_Query($args);
- // write_log($newsPostsDatas->posts);
+ $filteredPosts = [];
+
+ foreach ($newsPostsDatas as $post => $value) {
+ $persons = get_field('company_members', $value->ID);
+ write_log($persons);
+ }
+
+
+ write_log($newsPostsDatas->posts);
}
// debugQueryTest();