'acteur', // Remplace 'acteur' si ton CPT a un autre slug 'posts_per_page' => -1, 'post_status' => 'publish', 'orderby' => 'menu_order', 'order' => 'ASC', ); $actors = new WP_Query($args); if ($actors->have_posts()) : $position = 0; while ($actors->have_posts()) : $actors->the_post(); // récupère le champ personnalisé de rôle si besoin (par ex. ACF) $role = get_field('role') ?: 'Acteur'; // remplace 'role' par ton vrai slug ACF // récupère la photo $photo = get_field('photo') ?: 'https://via.placeholder.com/170'; // remplace 'photo' par ton champ d'image ACF ?>
  • >