46 lines
835 B
PHP
46 lines
835 B
PHP
<?php /* Template Name: Demo Page Template */ get_header(); ?>
|
|
|
|
<main role="main" aria-label="Content">
|
|
<!-- section -->
|
|
<section>
|
|
|
|
<h1><?php the_title(); ?></h1>
|
|
|
|
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
|
|
|
<!-- article -->
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<?php comments_template( '', true ); // Remove if you don't want comments. ?>
|
|
|
|
<br class="clear">
|
|
|
|
<?php edit_post_link(); ?>
|
|
|
|
</article>
|
|
<!-- /article -->
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<!-- article -->
|
|
<article>
|
|
|
|
<h2><?php esc_html_e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
|
|
|
|
</article>
|
|
<!-- /article -->
|
|
|
|
<?php endif; ?>
|
|
|
|
</section>
|
|
<!-- /section -->
|
|
</main>
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|