FEATURE Order authors byt last names in query

This commit is contained in:
Antoine M 2025-07-01 16:50:44 +02:00
parent bb842dedc4
commit 6d58909701

View File

@ -26,7 +26,8 @@ $authors = get_posts(array(
<?php $comities_related_authors = get_posts(array(
'post_type' => 'auteurs',
'posts_per_page' => -1,
'orderby' => 'title',
'meta_key' => 'last_name',
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => array(
array(