FIX Handling Chantier concatenated Title instead of just name
This commit is contained in:
parent
67c16a6f24
commit
e7544a9908
|
|
@ -192,8 +192,10 @@ function render_custom_chantier_box_content($post)
|
|||
echo '<ul>';
|
||||
while ($chantiers->have_posts()) {
|
||||
$chantiers->the_post();
|
||||
$date = get_field('date');
|
||||
$city = get_field('city')['city'] ?? null;
|
||||
$chantier_name = get_field('chantier_name');
|
||||
echo '<li><a href="' . get_edit_post_link() . '"> <img src=' . get_stylesheet_directory_uri() . '/resources/img/icons/document-inspect.svg' . ' /> ' . $chantier_name . '</a></li>';
|
||||
echo '<li><a href="' . get_edit_post_link() . '"> <img src=' . get_stylesheet_directory_uri() . '/resources/img/icons/document-inspect.svg' . ' /> ' . $chantier_name . ' | ' . $city . ' | ' . $date . '</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
echo '<a href="' . admin_url('post-new.php?post_type=chantiers&return_to=' . urlencode($return_to)) . '" class="new-chantier">Ajouter un chantier</a>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user