Skip to content

Consistent 'Read More' button and styling for manual post excerpts #4509

Description

@pirate-bot

Impact: 60 · Confidence: 95 · Complexity: 40

Description

Problem

Currently, Neve's Customizer settings for "Excerpt Length" and the "Read More" button only apply to auto-generated excerpts. Posts that use manually written excerpts bypass these settings because native WordPress outputs manual excerpts exactly as written without the excerpt_more string. This causes an inconsistent user interface on blog archives, as posts with manual excerpts skip the excerpt length limits and are missing the "Read More" call to action.

Desired Behavior

The Customizer's "Read More" button and excerpt styling should apply uniformly to all posts on the archive page, regardless of whether the excerpt was auto-generated from content or manually entered.

Acceptance Criteria

  • Detect cases where a manual excerpt is being used on an archive layout (has_excerpt()).
  • Ensure the theme-configured "Read More" button is successfully appended to custom manual excerpts.
  • Enhance excerpt output to gracefully handle trimming manual excerpts when they exceed the Customizer Excerpt Length (or provide clear logic separating visual read more buttons from strict truncation).

Customer Context

The customer is a business plan user complaining that their blog archive has an inconsistent layout. Posts where they have specifically added a manual custom excerpt do not get truncated according to the Customizer settings, and they are completely missing the 'Read More' button, breaking the archive's visual consistency.

Root Cause Analysis

The root cause is a gap between WordPress's native excerpt behavior and user expectation for theme settings. WordPress's the_excerpt() naturally outputs custom (manual) excerpts as absolute, ignoring excerpt_length limitations and failing to trigger the excerpt_more filters (which usually add 'Read More' buttons). The user expects the theme Customizer's excerpt settings to govern ALL archive outputs blindly, leading to frustration when manual excerpts render inconsistently against auto-generated ones.

Alternative Suggestions

Instead of adding a new feature, update the existing blog archive rendering logic to better handle has_excerpt(). The logic should automatically append the Customizer's 'Read More' button HTML to manual excerpts so that the call-to-action is visually consistent across all posts. Additionally, consider introducing a toggle to enforce the Customizer excerpt length limit on manual excerpts as well, unifying the archive layout without removing the user's ability to input manual text.

Reasoning

The issue is caused by standard WordPress behavior where manual excerpts bypass length truncation and the 'excerpt_more' filter used for the 'Read More' button. Since this results in an inconsistent archive layout, we don't need to build a net-new feature, but rather improve existing archive rendering logic so that Customizer 'Read More' and length settings apply consistently to both auto and manual excerpts.


Source: HelpScout #3340953321
Generated by feature-request-triage workflow (ID: feature-request-triage_6a1dc8bd7fed15.02128843)

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions