diff --git a/includes/columns.php b/includes/columns.php index b148c8c..2a6e952 100644 --- a/includes/columns.php +++ b/includes/columns.php @@ -33,10 +33,12 @@ function carhop_articles_handle_posts_custom_columns($column) if ($column == 'revue') { $revue_id = get_field('related_revue', $post_id); - if (!isset($revue_id)) return; - - $revue_title = get_the_title($revue_id); - echo $revue_title; + if (!isset($revue_id)) { + echo '—'; + } else { + $revue_title = get_the_title($revue_id); + echo $revue_title; + } } } add_action('manage_articles_posts_custom_column', 'carhop_articles_handle_posts_custom_columns', 10, 2);