Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

excerpt/full should apply to archives too #463

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 2 additions & 10 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,8 @@
</header><!-- .page-header -->

<?php while ( have_posts() ) : ?>
<?php
the_post();

/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content/content-excerpt', get_post_format() );
?>
<?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(); ?>
Expand Down
2 changes: 1 addition & 1 deletion classes/class-twenty-twenty-one-customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function register( $wp_customize ) {
array(
'type' => 'radio',
'section' => 'theme_settings',
'label' => esc_html__( 'On the Posts page, post show:', 'twentytwentyone' ),
'label' => esc_html__( 'On archive pages, posts show:', 'twentytwentyone' ),
'choices' => array(
'excerpt' => esc_html__( 'Excerpt', 'twentytwentyone' ),
'full' => esc_html__( 'Full text', 'twentytwentyone' ),
Expand Down