Regression: post excerpt block's excerptLength attribute is ignored, excerpt length is always limited to 55. #68996
Closed
4 of 6 tasks
Labels
[Block] Post Excerpt
Affects the Post Excerpt Block
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Description
The Post Excerpt block is intended to display up first 100 words of an excerpt, as mentioned when first introduced - #44964 (comment)
However, some time since then,
gutenberg/packages/block-library/src/post-excerpt/block.json
Line 22 in 24fad40
The excerpt block will only display, at most, the first 55 words of a post (the default value of the excerptlength attribute), even if you just adjust the excerpt block's attributes to more than 55.
The excerptLength attribute will correctly display the number of words on the front end if the ExcerptLength attribute value is below 55.
Step-by-step reproduction instructions
What happens:
the excerpts that displays on the published page are 55 words. You'll see in the video that this issue occurs within the editor and on the front end.
Note, there is an open pull request to fix this, #61888
Screenshots, screen recording, code snippet
Screencast.from.02-01-2025.06.14.47.PM.webm
Environment info
wp 6.7.1, gutenberg 20.0.1; twentytwentyfive theme
I'm also able to reproduce this issue in my custom hybrid theme as well that does not have gutenberg plugin enabled.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: