updating news templating

This commit is contained in:
Antoine M 2023-10-27 14:23:55 +02:00
parent 5d806cad96
commit adce6ca331

View File

@ -2,14 +2,18 @@
get_header();
$args = array(
'meta_key' => '_wp_page_template',
'meta_value' => "template-news.php"
'meta_value' => "template-archive-news.php"
);
$relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="single-post-container single-post-container--news <?php echo $thematiqueColorSlug ? "single-post-container--" . $thematiqueColorSlug : "" ?>">
<?php /* --------
BREADCRUMB
---------------*/ ?>
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
<ol>
<li>
@ -44,20 +48,20 @@ $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
));
?>
<div class="entry-content single-news-editor-content">
<article class="entry-content single-news-editor-content">
<?php
the_content();
?>
</div>
</article>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
<?php
get_footer();
<?php
get_footer();