Skip to content
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

Auto generated descriptions (%%excerpt%%) cut out the last word #9549

Closed
2 tasks done
celsoazevedo opened this issue Apr 24, 2018 · 2 comments
Closed
2 tasks done

Auto generated descriptions (%%excerpt%%) cut out the last word #9549

celsoazevedo opened this issue Apr 24, 2018 · 2 comments

Comments

@celsoazevedo
Copy link

celsoazevedo commented Apr 24, 2018

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

Some of my posts don't have a meta description, some have an excerpt, some just have a paragraph or two of text and no excerpt or meta description (it's a mess!) so I use the "%%excerpt%%" tag to generate an automatic description:

img01

This usually works well, but on posts with little text (sometimes) the generated description doesn't include the last word. For example, if I have the following text:

This is a quick post to show the short description issue with Yoast SEO.

img02

The word "SEO." is not included in the description tag:

This is a quick post to show the short description issue with Yoast

img03

Please describe what you expected to happen and why.

Ideally auto generated descriptions should use the full sentence (unless it's over the 320 character limit).

How can we reproduce this behavior?

  1. Install Yoast SEO
  2. Create a post (without an excerpt or meta description) with a short text (eg: use the same I used above)
  3. Add the "%%excerpt%%" tag on Search Appearance > Content Types > Post
  4. Check the source code

Technical info

  • WordPress version: 4.9.5
  • Yoast SEO version: 7.3
  • Relevant plugins in case of a bug: This happens even when Yoast SEO is the only active plugin.
  • Tested with theme: Twenty Seventeen (seems to happen with all themes)
  • Server: Tested on a LEMP and LAMP stack
@benvaassen
Copy link
Contributor

Thanks for reporting this bug!
I’ve marked it as backlog so it appears on the to-do list for our developers.

@andizer
Copy link
Contributor

andizer commented Nov 1, 2018

This has been fixed in #11187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants