diff --git a/single.php b/single.php index bd982141df..6ecb2efb0e 100644 --- a/single.php +++ b/single.php @@ -22,6 +22,7 @@ array( 'prev_text' => '' . esc_html__( 'Previous:', '_s' ) . ' %title', 'next_text' => '' . esc_html__( 'Next:', '_s' ) . ' %title', + 'in_same_term' => true, ) ); diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 3d34fc3467..8d7ac8ed70 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -12,9 +12,10 @@
>
', '' ); ?> +
- +
+ + - -
diff --git a/template-parts/content.php b/template-parts/content.php index 4f7ee77dd3..15d83d29d6 100644 --- a/template-parts/content.php +++ b/template-parts/content.php @@ -27,26 +27,30 @@ ?> + + - -
"%s"', '_s' ), - array( - 'span' => array( - 'class' => array(), - ), - ) - ), - wp_kses_post( get_the_title() ) - ) - ); + if ( !is_singular() && has_excerpt() ) : + the_excerpt(); + else : + the_content( + sprintf( + wp_kses( + /* translators: %s: Name of current post. Only visible to screen readers */ + __( 'Continue reading "%s"', '_s' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + wp_kses_post( get_the_title() ) + ) + ); + endif; wp_link_pages( array(