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(); get_header();
$args = array( $args = array(
'meta_key' => '_wp_page_template', '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; $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
?> ?>
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <?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"> <nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
<ol> <ol>
<li> <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 <?php
the_content(); the_content();
?> ?>
</div> </article>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>
<?php <?php
get_footer(); get_footer();