WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 5 weeks ago

Last modified 4 weeks ago

#46177 closed enhancement (fixed)

TwentyNineteen: Add "Read More" Link Text When Using Post Excerpts

Reported by: alex27 Owned by: metalandcoffee
Milestone: 5.7 Priority: normal
Severity: normal Version: 5.0
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

The excerpts do not have a "Read more" link, but display a [...] instead. While excerpts are not widely used in TwentyNineteen, they do appear in archive pages.

Originally suggested here

Attachments (1)

46177.diff (1.2 KB) - added by metalandcoffee 6 weeks ago.

Download all attachments as: .zip

Change History (6)

#1 @sabernhardt
8 months ago

  • Keywords needs-patch added

We may want to create a twentynineteen_excerpt_more filter, similar to the Twenty Sixteen filter.

Note: filters like that apparently are not compatible yet with the Latest Posts block (but the block editor issue needs fixing anyway for other themes' existing filters).

Last edited 8 months ago by sabernhardt (previous) (diff)

#2 @metalandcoffee
6 weeks ago

  • Milestone changed from Awaiting Review to 5.7
  • Owner set to metalandcoffee
  • Status changed from new to assigned
  • Version set to 5.0

I created a patch for this. It's pretty much a direct copy of the excerpt_more filter function from the TwentySeventeen theme :)

@metalandcoffee
6 weeks ago

#3 @sabernhardt
6 weeks ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
5 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 49831:

Twenty Nineteen: Add "Continue reading" link for post excerpts.

This ensures that archive pages have a meaningful link text after the excerpts.

Props metalandcoffee, alex27, sabernhardt, mdrockwell, laurelfulford.
Fixes #46177.

#5 @SergeyBiryukov
4 weeks ago

In 49901:

Twenty Nineteen: Correct @since version for twentynineteen_excerpt_more().

Follow-up to [49831].

See #46177.

Note: See TracTickets for help on using tickets.