page: add basic page handling
This commit is contained in:
parent
a340c01a99
commit
bb78235d6d
1 changed files with 17 additions and 0 deletions
17
page.php
Normal file
17
page.php
Normal 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(); ?>
|
Reference in a new issue