Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentytw...
File: archive.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The template for displaying archive pages
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty_One
[7] Fix | Delete
* @since Twenty Twenty-One 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
get_header();
[11] Fix | Delete
[12] Fix | Delete
$description = get_the_archive_description();
[13] Fix | Delete
?>
[14] Fix | Delete
[15] Fix | Delete
<?php if ( have_posts() ) : ?>
[16] Fix | Delete
[17] Fix | Delete
<header class="page-header alignwide">
[18] Fix | Delete
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
[19] Fix | Delete
<?php if ( $description ) : ?>
[20] Fix | Delete
<div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div>
[21] Fix | Delete
<?php endif; ?>
[22] Fix | Delete
</header><!-- .page-header -->
[23] Fix | Delete
[24] Fix | Delete
<?php while ( have_posts() ) : ?>
[25] Fix | Delete
<?php the_post(); ?>
[26] Fix | Delete
<?php get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) ); ?>
[27] Fix | Delete
<?php endwhile; ?>
[28] Fix | Delete
[29] Fix | Delete
<?php twenty_twenty_one_the_posts_navigation(); ?>
[30] Fix | Delete
[31] Fix | Delete
<?php else : ?>
[32] Fix | Delete
<?php get_template_part( 'template-parts/content/content-none' ); ?>
[33] Fix | Delete
<?php endif; ?>
[34] Fix | Delete
[35] Fix | Delete
<?php get_footer(); ?>
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function