-
Notifications
You must be signed in to change notification settings - Fork 441
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
Implicit excerpt from content should be an option and not mandatory #1314
Comments
I'd vote option 2 as the one that makes the most sense, but not sure how that would work with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. If you believe this issue is still valid, please open a new issue and mark this as a related issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. If you believe this issue is still valid, please open a new issue and mark this as a related issue. |
Just ran into this today again... would love a way to only get excerpts if they were actually entered into the field, not falling back to auto generated ones. |
Temp solution is to put this in your functions.php file:
|
Came here to post exactly this idea and found this existing issue. I think there should be a way to either disable automatic excerpts, or have a flag so that I can easily decide in code on whether to render the excerpt I got. |
When querying for an excerpt in a post and the post has not explicitly defined an excerpt, at the moment, the excerpt gets created from the content.
That's a problem, because if in the frontend, I want to only show an excerpt if it is defined, I can't. It will always contain content with the current implementation.
Three options, how it could be handled come into my mind:
excerptExists
.excerpt
andexcerptContent
orcontentExcerpt
I personally lean to option 3 or 2.
The text was updated successfully, but these errors were encountered: