From 53e1a20259ff12ae2ee60745b5f2cab74c7da1e4 Mon Sep 17 00:00:00 2001 From: Nonimart Date: Mon, 23 Mar 2026 16:36:18 +0100 Subject: [PATCH] Organising Authors filter list by last name --- template-parts/articles/articles-grid.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template-parts/articles/articles-grid.php b/template-parts/articles/articles-grid.php index af26cb2..4339410 100644 --- a/template-parts/articles/articles-grid.php +++ b/template-parts/articles/articles-grid.php @@ -25,7 +25,10 @@ $articles = new WP_Query($query_args); $post_count = $articles->post_count; $authors = get_posts(array( 'post_type' => 'auteurs', - 'posts_per_page' => -1 + 'posts_per_page' => -1, + 'order' => 'ASC', + 'meta_key' => 'last_name', + 'orderby' => 'meta_value', )); $thematiques = get_terms(array(