updating news templating
This commit is contained in:
parent
5d806cad96
commit
adce6ca331
|
|
@ -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,11 +48,11 @@ $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; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user