Template hierarchy issue where post title incorrectly displays instead of page title in blog page context.
The issue involves incorrect title display in home.html template when used as a blog page, showing post title instead of page title. Requires understanding of WordPress template hierarchy and query loop behavior in block themes. Solution may involve template adjustments but scope isn't fully clear.
As I am aware, assigning any page as the 'blog page' in WP reading settings, this will load home.php / home.html in the template hierarchy. This is the specific use case here.
In the home.html template, we want to add a post-title to the blogpage template, or in a template-part assigned to the home.html.
Problem: The title displays the title of first post in the loop. Not the page title (which is 'blog' in my case). The featured image block also displays the first posts' featured image, and the not the blogs (or none if it isnt assigned).
Expectation: It should display the title of the current page, not a post in the query loop.
I remember in the 'old days' this was a bug that occured when 'wp_reset_postdata' wasn't used correctly to close the loop. But i assume it works a little different in a block theme.
@everyone: this can be solved with manually placing a heading block, but the purpose of issues here is that we want this to work as expected or intended.
Testing with post title in the 'header-dark-small' template-part:
Testing with post-title in the template itself:

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!