updated file structures and HTML, added archive, single, page for better view control. updated labeling.
This commit is contained in:
30
page.php
Normal file
30
page.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
// MFWPT - page.php
|
||||
|
||||
?>
|
||||
<?php get_header(); ?>
|
||||
|
||||
<main>
|
||||
<?php
|
||||
// start the loop, check for posts
|
||||
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php the_content(); ?>
|
||||
</article><!-- page -->
|
||||
|
||||
<?php
|
||||
endwhile;
|
||||
else :
|
||||
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
|
||||
endif;
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
comments_template();
|
||||
endif;
|
||||
?>
|
||||
</main>
|
||||
|
||||
<?php get_footer(); ?>
|
Reference in New Issue
Block a user