クエリーループのエラー?

このところ、Wordpressのブロックテーマをちょっと触っていたのだけれども、Gutenberg のクエリーループブロックの挙動が期待通りではない気がする。

実現したいこと
一つのページに、通常投稿のリストと、カスタム投稿タイプのリストを表示する

問題
カスタム投稿タイプのリストで、本文(「投稿コンテンツ」)を表示させようとすると、一番最初の投稿の内容が通常投稿の内容に置き換わってしまう。
※ 抜粋の場合は起こらない。プレビュー画面では置き換わらない。

ひとまずの対応
通常投稿のリストをカスタム投稿タイプのリストよりも先にコールする
※ ただし本当は逆がよい

Issue の状況
すこし検索したところ、昨年夏ごろから同種のレポートが上がっている。

https://github.com/WordPress/gutenberg/issues/42862
https://github.com/WordPress/gutenberg/issues/44981
https://github.com/WordPress/gutenberg/issues/40743
https://github.com/WordPress/gutenberg/pull/49904

そろそろリリースされる WordPress 6.4 で修正される様子 なので、アップデートを待ってみます。



Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.