fixing language
This commit is contained in:
parent
47bfdf975d
commit
d297d3ddeb
|
|
@ -98,7 +98,7 @@ function build_search_artisan_posts_cards($request)
|
||||||
|
|
||||||
|
|
||||||
if ($newsPostsDatas->found_posts === 0) {
|
if ($newsPostsDatas->found_posts === 0) {
|
||||||
$html_template = "<div class='no-results'><img class='no-results__cover' src='" . get_stylesheet_directory_uri() . "/resources/img/illustrations/Homegrade_resultats-filtres-cactus.svg' alt=''/><h3>" . __("Aucun résultat trouvé", "metiers-patrimoine-theme") . "</h3><p>" . __("Essayez d'ajouter un filtre supplémentaire pour trouver plus de résultats", "metiers-patrimoine-theme") . "</p></div>";
|
$html_template = "<div class='no-results'><img class='no-results__cover' src='" . get_stylesheet_directory_uri() . "/resources/img/illustrations/Homegrade_resultats-filtres-cactus.svg' alt=''/><h3>" . __("Aucun résultat trouvé", "metiers-patrimoine-theme") . "</h3><p>" . __("Essayez d'ajouter un <span class='highlighted-purple'>filtre supplémentaire</span> pour trouver plus de résultats", "metiers-patrimoine-theme") . "</p></div>";
|
||||||
}
|
}
|
||||||
$response_data = array(
|
$response_data = array(
|
||||||
'html_template' => $html_template,
|
'html_template' => $html_template,
|
||||||
|
|
@ -118,20 +118,6 @@ function build_search_artisan_posts_cards($request)
|
||||||
|
|
||||||
function debugQueryTest()
|
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(
|
$args = array(
|
||||||
"status" => "publish",
|
"status" => "publish",
|
||||||
"post_type" => "artisans",
|
"post_type" => "artisans",
|
||||||
|
|
@ -141,6 +127,14 @@ function debugQueryTest()
|
||||||
's' => "Atelier Schrauwen",
|
's' => "Atelier Schrauwen",
|
||||||
);
|
);
|
||||||
$newsPostsDatas = new WP_Query($args);
|
$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();
|
// debugQueryTest();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user