initial commit
This commit is contained in:
45
template-demo.php
Normal file
45
template-demo.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php /* Template Name: Demo Page Template */ get_header(); ?>
|
||||
|
||||
|
||||
<!-- 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 _e( 'Sorry, nothing to display.', 'dis2019' ); ?></h2>
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
<!-- /section -->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user