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

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

JorgeVilchez95
Copy link
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
Copy link

github-actions bot commented Mar 10, 2025

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 <[email protected]>
Co-authored-by: renatho <[email protected]>
Co-authored-by: code-with-mehedi <[email protected]>

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

@renatho
Copy link
Contributor

renatho commented Mar 10, 2025

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
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
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
3 participants