FEATURE Organising artisan alphabetically
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-07-11 14:35:50 +02:00
parent 94e2fa7d84
commit 2c5b5e2009
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,8 @@ function build_search_artisan_posts_cards($request)
// "meta_query" => [],
"meta_query" => $metaQuery,
's' => $search_value,
'orderby' => 'title',
'order' => 'ASC',
);
$searchArtisans = new WP_Query($args);

View File

@ -3,6 +3,7 @@
<?php
get_header();
$currentLang = do_action('wpml_current_language');
do_action('wpml_switch_language', 'fr');
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
do_action('wpml_switch_language', $currentLang);
@ -12,6 +13,8 @@ $initialPosts = new WP_Query([
"post_type" => "artisans",
"posts_per_page" => -1,
"paged" => 1,
"orderby" => "title",
"order" => "ASC",
]);
?>