FIX updated post status filter in artisans list to include all statuses for enhanced filtering capabilities (any instead of multiple individual call)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-04-07 16:17:32 +02:00
parent 73b7565e21
commit b08fd1d5b6

View File

@ -165,7 +165,7 @@ function metiers_patrimoine_filter_posts_declare_dropdowns()
$meta_key = 'mdp_status';
$values = get_posts([
'post_status' => array('publish', 'draft', 'pending', 'offline', 'trash'),
'post_status' => 'any',
'post_type' => 'artisans',
'posts_per_page' => -1,
'meta_key' => $meta_key,