<?php /** * The template for displaying archive pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ get_header(); $description = get_the_archive_description(); ?> <?php if ( have_posts() ) : ?> <header class="page-header alignwide"> <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> <?php if ( $description ) : ?> <div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div> <?php endif; ?> </header><!-- .page-header --> <?php while ( have_posts() ) : ?> <?php the_post(); ?> <?php get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) ); ?> <?php endwhile; ?> <?php twenty_twenty_one_the_posts_navigation(); ?> <?php else : ?> <?php get_template_part( 'template-parts/content/content-none' ); ?> <?php endif; ?> <?php get_footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
classes | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
404.php | File | 721 B | 0644 |
|
archive.php | File | 995 B | 0644 |
|
comments.php | File | 2.57 KB | 0644 |
|
footer.php | File | 2.2 KB | 0644 |
|
functions.php | File | 18.84 KB | 0644 |
|
functionsbak.php | File | 18.91 KB | 0644 |
|
header.php | File | 1 KB | 0644 |
|
image.php | File | 3.37 KB | 0644 |
|
index.php | File | 1.17 KB | 0644 |
|
package-lock.json | File | 607.44 KB | 0644 |
|
package.json | File | 2.46 KB | 0644 |
|
page.php | File | 590 B | 0644 |
|
postcss.config.js | File | 319 B | 0644 |
|
readme.txt | File | 5.86 KB | 0644 |
|
screenshot.png | File | 276.27 KB | 0644 |
|
search.php | File | 1.61 KB | 0644 |
|
searchform.php | File | 1.4 KB | 0644 |
|
single.php | File | 1.66 KB | 0644 |
|
style-rtl.css | File | 152.36 KB | 0644 |
|
style.css | File | 152.66 KB | 0644 |
|
style.css.map | File | 22.97 KB | 0644 |
|