diff --git a/archive.php b/archive.php index 72228d97a..19b307d88 100644 --- a/archive.php +++ b/archive.php @@ -27,7 +27,7 @@ * 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_template_part( 'template-parts/content/content-excerpt', get_post_format() ); ?> diff --git a/index.php b/index.php index 74f62dcfe..a1203f59e 100644 --- a/index.php +++ b/index.php @@ -23,7 +23,7 @@ the_post(); if ( 'excerpt' === get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) ) { - get_template_part( 'template-parts/content/content-excerpt' ); + get_template_part( 'template-parts/content/content-excerpt', get_post_format() ); } else { get_template_part( 'template-parts/content/content' ); } diff --git a/search.php b/search.php index 158373c9b..910d92db7 100644 --- a/search.php +++ b/search.php @@ -51,7 +51,7 @@ * 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_template_part( 'template-parts/content/content-excerpt', get_post_format() ); } // End the loop. // Previous/next page navigation.