diff --git a/includes/chantiers.php b/includes/chantiers.php index 78e046b..9793b4e 100644 --- a/includes/chantiers.php +++ b/includes/chantiers.php @@ -1,58 +1,8 @@ 'chantiers', - 'posts_per_page' => -1, - 'post_status' => 'publish', - 'meta_query' => array( - array( - 'key' => 'artisan', - 'value' => $post->ID, - 'compare' => '=', - ), - ), - ); - - $chantiers = new WP_Query($args); - - - // Afficher les chantiers - - if ($chantiers->have_posts()) { - - echo '
Ce chantier n\'est relié à aucun artisan
'; - } -} - add_action('acf/render_field', function ($field) { // Vérifiez si le champ est celui que vous voulez personnaliser @@ -66,7 +16,7 @@ add_action('acf/render_field', function ($field) { if ($linked_post_id) { $edit_link = get_edit_post_link($linked_post_id); - echo '