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

The latest posts block doesn't render the post blocks properly when displaying the post content #69517

Closed
3 of 6 tasks
renatho opened this issue Mar 10, 2025 · 5 comments · May be fixed by #69518
Closed
3 of 6 tasks
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Block] Latest Posts Affects the Latest Posts Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@renatho
Copy link
Contributor

renatho commented Mar 10, 2025

Description

When we add the Latest Blocks to a page, activate the "Post content" and "Full post", I would expect to have the full post rendered properly as it works in the page, but it doesn't parse the blocks properly.

I noticed this related issue, and this state of this PR (currently open) seems to fix the issue on the frontend. But in the editor it continues broken.

It was originally reported in Automattic/wp-calypso#88833

Step-by-step reproduction instructions

  1. Add a gallery block to a post with at least 2 images.
  2. Create a new page.
  3. Add the "Latest Posts" block.
  4. In the sidebar settings, check "Post content" and "Full post".
  5. Check that the gallery doesn't have the images side by side as the original post.
  6. Check the editor, and see that the same happens.

It's not related specifically to the Gallery block. It also happens with other blocks.

Screenshots, screen recording, code snippet

The post:

Image

The page in the editor with the Latest Posts block, and its settings:

Image

The page in the frontend:

Image

The page in the frontend applying this commit (in the editor it continued broken):

Image

Environment info

  • WordPress: 6.7.2
  • Gutenberg: 20.4.0
  • Theme: Twenty Twenty-Four
  • Browser: Chrome
  • Device: Desktop Mac OS

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
@code-with-mehedi
Copy link

@renatho Thanks for creating this ticket. I have checked the mentioned PR and am trying to reproduce the issue on my end.

JorgeVilchez95 added a commit to JorgeVilchez95/gutenberg that referenced this issue Mar 10, 2025
… post blocks properly when displaying the post content
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 10, 2025
@JorgeVilchez95
Copy link
Contributor

Hi! I just created a PR that fixes this CSS bug.

Sorry @code-with-mehedi , I started working on this without saying before that I'm going to do it

@t-hamano t-hamano added [Block] Gallery Affects the Gallery Block - used to display groups of images [Block] Latest Posts Affects the Latest Posts Block labels Mar 11, 2025
@carolinan
Copy link
Contributor

Also probably a duplicate of #61477

@Mamaduka
Copy link
Member

@renatho, can you confirm if it's a duplicate of #61477? There's no need to have two issues for the same bug.

@renatho
Copy link
Contributor Author

renatho commented Mar 11, 2025

@carolinan and @Mamaduka, thank you for the ping and for the reference of the other issue! It really seems to be a duplicate one. So closing this one in favor of #61477.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Block] Latest Posts Affects the Latest Posts Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants