Added WP-Theme
This commit is contained in:
36
as-coaching-theme/single.php
Normal file
36
as-coaching-theme/single.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Single post template.
|
||||
*
|
||||
* @package AS_Coaching
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="content" class="site-main">
|
||||
<div class="post-single">
|
||||
<div class="container">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-single__article' ); ?>>
|
||||
<header class="post-single__header">
|
||||
<h1 class="post-single__title"><?php the_title(); ?></h1>
|
||||
<p class="post-single__meta">
|
||||
<?php echo esc_html( get_the_date() ); ?>
|
||||
</p>
|
||||
</header>
|
||||
<div class="post-single__content">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user