Skip to content

Commit 69cef53

Browse files
committed
Show "read-more" text again on latest post output
1 parent 034d5a1 commit 69cef53

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

template-parts/archive-event.php

+1-14
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,7 @@
5151

5252
<div class="entry-content">
5353
<?php
54-
the_excerpt(
55-
sprintf(
56-
wp_kses(
57-
/* translators: %s: Name of current post. Only visible to screen readers */
58-
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sunflower' ),
59-
array(
60-
'span' => array(
61-
'class' => array(),
62-
),
63-
)
64-
),
65-
wp_kses_post( get_the_title() )
66-
)
67-
);
54+
the_excerpt();
6855
?>
6956
</div><!-- .entry-content -->
7057

template-parts/content-archive.php

+2-16
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,7 @@
4747
<div class="entry-content">
4848
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark">
4949
<?php
50-
the_excerpt(
51-
sprintf(
52-
wp_kses(
53-
/* translators: %s: Name of current post. Only visible to screen readers */
54-
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sunflower' ),
55-
array(
56-
'span' => array(
57-
'class' => array(),
58-
),
59-
)
60-
),
61-
wp_kses_post( get_the_title() )
62-
)
63-
);
64-
50+
the_excerpt();
6551
wp_link_pages(
6652
array(
6753
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sunflower' ),
@@ -78,7 +64,7 @@
7864
<div class="d-flex flex-row-reverse">
7965
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" class="continue-reading">
8066
<?php
81-
__( 'Continue reading', 'sunflower' );
67+
esc_attr_e( 'Continue reading', 'sunflower' );
8268
?>
8369
</a>
8470
</div>

0 commit comments

Comments
 (0)