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

Commit

Permalink
Add 2nd param when calling the excerpt.
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Oct 9, 2020
1 parent 74ad732 commit 1ef4aa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
?>
<?php endwhile; ?>

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1ef4aa5

Please sign in to comment.