Skip to content

Fix issue #69517 - The latest posts block doesn't render the post blo… - #69518

Closed
JorgeVilchez95 wants to merge 1 commit into
WordPress:trunkfrom
JorgeVilchez95:fix/69517-The-latest-posts-block-doesn't-render-the-post-blocks
Closed

JorgeVilchez95 wants to merge 1 commit into
WordPress:trunkfrom
JorgeVilchez95:fix/69517-The-latest-posts-block-doesn't-render-the-post-blocks

Conversation

@JorgeVilchez95

Copy link
Copy Markdown
Contributor

…cks properly when displaying the post content

What?

Closes #69517

This PR tries to solve PR by modifying CSS

Why?

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. Now I'm solving this.

Testing 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 have the images side by side as the original post.

Screenshots or screencast

|image|image|

… post blocks properly when displaying the post content
@github-actions

github-actions Bot commented Mar 10, 2025 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: JorgeVilchez95 <jorgevilchez@git.wordpress.org>
Co-authored-by: renatho <renathoc@git.wordpress.org>
Co-authored-by: code-with-mehedi <mehedi_csit@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@renatho

renatho commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

Hi @JorgeVilchez95!
Thank you for your PR, but I'm not sure if it's the best approach for this case, since it just solves a cause instead of the origin of the issue. The same issue could affect different blocks with different causes, and all of these blocks that could break would need a custom fix for this. So I suspect some solution like this one would be more appropriate since it's more focused on the root cause of this issue. WDYT? Does it make sense?

@JorgeVilchez95

Copy link
Copy Markdown
Contributor Author

Hi @renatho!

On second thought, I think you are right. I will look for a more root-focused solution as you suggest.

Thanks.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Gallery Affects the Gallery Block - used to display groups of images [Block] Latest Posts Affects the Latest Posts Block labels Mar 11, 2025
@youknowriad

Copy link
Copy Markdown
Contributor

Thank you for looking into this, @JorgeVilchez95! The root cause, blocks not being parsed in the Latest Posts full content, was fixed in #74866, so the gallery-specific CSS here is no longer needed. Closing as superseded. Please open a new issue if you still see rendering problems on trunk.

@youknowriad youknowriad closed this Oct 8, 2026
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 [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants