Add Guide for working with Meta values in the Query Loop Block
Add a new page to describe how we can output custom information in the query loop.
Still work in progress
Hey @fabiankaegy I just added some more information as requested about pulling and updating post meta. There are two different contexts in which we use Meta, so I wrote the first part for meta like "post data" or similar that we show under the titles on post cards. And the second part is about stored post meta from the database and updating it. Ready for review I think ^^
@xavortm This is great :)
The only thing I would love to add at the bottom of the guide is to be very clear about the fact that you can combine the useEntryProp hook to read meta values within a block in the query loop using the postId context :)
Hey @fabiankaegy , I added some more content to the post, I think it is ready for review. Note that I wasn't very certain about some points and I spend most of the time researching and trying to run a demo to test it
Hey @xavortm 👋
I really like the changes & additions you've made. The illustration you've added is a gem as always 🤩
The comments I've made in my earlier review here: https://github.com/10up/gutenberg-best-practices/pull/43#issuecomment-1162742455 still apply. I'd love to see the connection between the two concepts you are explaining here by using the meta value inside the query loop :)
@xavortm This is great :)
The only thing I would love to add at the bottom of the guide is to be very clear about the fact that you can combine the
useEntryProphook to read meta values within a block in the query loop using thepostIdcontext :)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| 10up-gutenberg-best-practices | ✅ Ready (Inspect) | Visit Preview | Jul 12, 2022 at 6:51AM (UTC) |