updated file structures and HTML, added archive, single, page for better view control. updated labeling.
This commit is contained in:
28
index.php
28
index.php
@ -1,16 +1,30 @@
|
||||
<?php
|
||||
// MFWPT - index.php
|
||||
// This is the index page, which presents the river,
|
||||
// and is the default for any of the other views that
|
||||
// do not have specific php views
|
||||
?>
|
||||
|
||||
<?php get_header(); ?>
|
||||
|
||||
<main>
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
||||
<?php
|
||||
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
||||
// get the content.php
|
||||
get_template_part( 'content', get_post_format() );
|
||||
endwhile;
|
||||
else :
|
||||
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
|
||||
endif;
|
||||
//get_sidebar();
|
||||
?>
|
||||
else :
|
||||
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
|
||||
endif;
|
||||
// pagenation for the pages
|
||||
the_posts_pagination( array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => "<-- ",
|
||||
'next_text' => " -->"
|
||||
) );
|
||||
//get_sidebar();
|
||||
?>
|
||||
|
||||
</main>
|
||||
|
||||
|
Reference in New Issue
Block a user