FEATURE Organising artisan alphabetically
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
94e2fa7d84
commit
2c5b5e2009
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
]);
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user