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

Query loop excerpt begins with ">" #68614

Open
3 of 6 tasks
jacobzymet opened this issue Jan 12, 2025 · 4 comments · May be fixed by #68619
Open
3 of 6 tasks

Query loop excerpt begins with ">" #68614

jacobzymet opened this issue Jan 12, 2025 · 4 comments · May be fixed by #68619
Labels
[Block] Post Excerpt Affects the Post Excerpt Block [Block] Query Loop Affects the Query Loop Block [Type] Bug An existing feature does not function as intended

Comments

@jacobzymet
Copy link

jacobzymet commented Jan 12, 2025

Description

I created a list of my latest blog posts using the Query Loop block. In the block editor, everything looks normal, but on the published page, the excerpt begins with ">".

Rather than "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed..."
It shows "> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed..."

This symbol (>) obviously should not be present.

Step-by-step reproduction instructions

  1. Create a WordPress site on the Twenty Twenty Four theme
  2. Create a query loop block ("image at left")
  3. Ensure there's an excerpt
  4. Publish
  5. Visit published page

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.7.1, Twenty Twenty Four Theme
  • Safari on macOS
  • Gutenberg 20.0.0
  • PHP 8.4

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@jacobzymet jacobzymet added the [Type] Bug An existing feature does not function as intended label Jan 12, 2025
@Mamaduka Mamaduka added [Block] Query Loop Affects the Query Loop Block [Block] Post Excerpt Affects the Post Excerpt Block labels Jan 12, 2025
@theMasudRana
Copy link

theMasudRana commented Jan 12, 2025

Thanks @jacobzymet for reporting the issue.
I was also able to reproduce the issue on my local setup. I'm adding a screenshot for more context.

Image

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 12, 2025
@t-hamano
Copy link
Contributor

Quote from this comment:

I haven't been able to investigate this in detail yet, but this issue should have been caused by #67272.

Temporarily deleting this changes fixes the issue, which means the problem must be somewhere in this newly added code.

@t-hamano
Copy link
Contributor

Note: This issue can also be reproduced with the Latest Posts block.

Editor:

Image

Front-end:

Image

@Mamaduka Mamaduka removed the [Status] In Progress Tracking issues with work in progress label Jan 15, 2025
@Mamaduka
Copy link
Member

Removed the "In Progress" label since the associated PR doesn't solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Excerpt Affects the Post Excerpt Block [Block] Query Loop Affects the Query Loop Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants