Skip to content

Excerpt Count Feature Fails to Add "Continue Reading" Link When Numerals Are Present in Text #212

@Misplon

Description

@Misplon

Excerpt Count Skips "Continue Reading" Link with Numerals

Issue: The siteorigin_corp_excerpt function doesn't add the "Continue reading" link when numerals (e.g., "30") are in the excerpt, despite exceeding the 55-word limit. Using words (e.g., "thirty") works fine.

  • Fails: She traveled for 30 days, visited 200 cities, dined with 8 friends. (~60 words)
  • Works: She traveled for thirty days, visited two hundred cities, dined with eight friends.

Cause: Likely str_word_count or wp_trim_words miscounts numerals, affecting $excerpt_add_read_more.

Environment:

  • Theme: SiteOrigin Corp
  • Feature: Excerpt Count
  • Setting: blog_excerpt_length = 55

Fix: Ensure consistent word counting for numerals and words.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions