Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Search result excerpt incldues the word Read... unlinked without space #448

Closed
jessecowens opened this issue Jul 19, 2021 · 1 comment · Fixed by BoldGrid/prime#125

Comments

@jessecowens
Copy link
Member

Describe the bug
When search results are displayed, the word "Read..." is included at the end of the result, not linked to the post, and without a space before the word.
search-excerpt
This seems to be related to how wp_trim_words treats get_the_excerpt in this line.

To Reproduce
Steps to reproduce the behavior:

  1. Perform a search that returns results, for example by using the query string ?s=about on an inspirations pageset.

Expected behavior
Ideally, this would read "Read More..." or whatever the localized read more string should be, and also be linked to the post.

Additional context
This bug is related to user feedback from the BoldGrid Support forums

@jessecowens
Copy link
Member Author

jessecowens commented Jul 19, 2021

It looks like wp_kses_post( wp_trim_excerpt() ); would be better. It would use the user-specified excerpt length from customizer and allow the Read More link to be styled and link

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants