updating news templating
This commit is contained in:
parent
5d806cad96
commit
adce6ca331
|
|
@ -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,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
|
<?php
|
||||||
the_content();
|
the_content();
|
||||||
?>
|
?>
|
||||||
</div>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user