single: add basic single page handling
This commit is contained in:
parent
bb78235d6d
commit
db12d768cd
1 changed files with 17 additions and 0 deletions
17
single.php
Normal file
17
single.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