page: add basic page handling

This commit is contained in:
Kazhnuz 2018-10-24 17:18:28 +02:00
parent a340c01a99
commit bb78235d6d

17
page.php Normal file
View file

@ -0,0 +1,17 @@
<?php get_header(); ?> <!-- ouvrir header,php -->
<main class="col-md-8">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content" id="post-<?php the_ID(); ?>">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="article-body">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>
</main>
<?php get_sidebar(); ?>
<?php get_footer(); ?>