Enhance Theme Templates and Editor Layout
This commit is contained in:
+17
-3
@@ -1,5 +1,19 @@
|
||||
<?php get_header(); ?>
|
||||
<header class="page-header"><h1 class="page-title"><?php the_archive_title(); ?></h1><?php the_archive_description( '<div class="archive-description">', '</div>' ); ?></header>
|
||||
<main id="main" class="site-main"><?php // Archive queries use the shared card template and WordPress pagination.
|
||||
if ( have_posts() ) { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content' ); } the_posts_pagination( array( 'mid_size' => 1 ) ); } ?></main>
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php the_archive_title(); ?></h1>
|
||||
<?php the_archive_description( '<div class="archive-description">', '</div>' ); ?>
|
||||
</header>
|
||||
<main id="main" class="site-main">
|
||||
<?php
|
||||
// Archive queries use the shared card template and WordPress pagination.
|
||||
if ( have_posts() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
get_template_part( 'template-parts/content' );
|
||||
}
|
||||
|
||||
the_posts_pagination( array( 'mid_size' => 1 ) );
|
||||
}
|
||||
?>
|
||||
</main>
|
||||
<?php get_footer();
|
||||
|
||||
Reference in New Issue
Block a user