-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change excerpt length in post excerpt block #34757
Comments
This is a related PR: #33366 that removed for now this field, and I explain the inconsistencies with this field. In a few words |
Will the read more length of the excerpt block be returned in WP 5.9 or GB plugin 12.3? |
@dingo-d I don't see a pull request for solving the issue, so I don't think it will be solved in time. |
Please consider fixing this |
This was mentioned in the latest FSE Outreach Program call for testing:
It does feel odd that the controls exist in the Latest Posts block but not here. When thinking about expanding functionality, this seems like a high impact quick win. |
So true, I also think consistency between blocks is missing here. I heard that it might not be so easy to add Excerpt length settings to the block. But from a theme author's side, this seems to be something we would have loved to have solved in WordPress for so many years. Therefore, it would be amazing to have a solution for this issue. |
@scruffian might this fit as being under general block support work? #41113 |
Any updates on this, I'm trying to add excerpt text to dynamic header, and needs to be very short |
@ntsekouras can we revisit this and try to find a more straightforward solution? I'm not sure what consistency you are referring to with wordcount, but it seems like a minor concern compared to the ability to control length when setting up a design. |
I noticed this missing as I am exploring Twenty Twenty Two for a site with a lot of written material. I am hoping it can be added soon. Thanks! |
Dropping a note that this would be pretty useful in improving the query block. |
Any help in moving it forward would be appreciated. I have not been able to reliably determine if an excerpt is generated automatically vs created by the user.
|
I feel trimming the text should be unrelated to whether the text is crafted by the user or pulled from the content. There could be instances were a user crafted excerpt works well in one query view, but there's another more condensed sidebar display that wants to show a single line, even if it's user generated. |
Perhaps then the length option should only be available when in the site editor or inside a query. |
Agreed. |
It is now implemented in the PR. But it is the opposite of how the excerpt length filter works in WP Core. |
Noting that this was brought up in the nineteenth call for testing for the FSE Outreach program as desired. Let me know if I can help at all in moving this work forward (bring in reviews, etc). |
I need help with including |
Thank you! @alexstine do you think you could provide an accessibility review? I'll work on a usability review and will leave some notes as I have them on the PR. |
@annezazu Sure. I will try to take a look soon. |
Hi everyone, here on line 80, there is this comment: _* If themes or plugins filter the excerpt_length, we need to
Shouldn't excerpt_length hook defined here alter the length of the excerpt block? I tried using it but it seems to have no effect, or am I missing something? Thanks |
Hi |
I would like to suggest that, if there are more feature requests, enhancements or bug reports for this block please open new issues. |
What problem does this address?
When listing out a set of posts a post-excerpt block is displayed. However there is no option to control the length of the text that is displayed.
What is your proposed solution?
Provide a UI control to control the length of the excerpt.
The text was updated successfully, but these errors were encountered: