-
Notifications
You must be signed in to change notification settings - Fork 30
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
Venue post_type does not take care about the WordPress Geodata Standard. #560
Comments
Thanks for keeping this @mauteri. I wanted to give some more information on my initial attempt and why the WordPress Geodata Standard could be from interest for GatherPress' The codex says:
If GatherPress wanted to follow this standard, it must make sure to save geo-related data within specially named custom-fields aka
Because of the required fields for latitude and longitude, it's not possible to provide the needed data with the current version of GatherPress, the required data is missing. So we would at least need to:
While working on #638 I found out and tested for the first time, if and that it's possible to work with non-existent post_meta. This allows GatherPress to keep its current data structure, while still aligning with the WordPress Geodata Standard. Example pseudo-post_meta for
|
I don’t think filtering the metadata is the right approach at all. Surely the plugin should just save the metadata using the right fields as described by the standard More broadly saving all the venue information in one field in post meta is far from ideal anyway. In an ideal world every separate bit of information would have its own meta_key. |
Thank you for sharing your opinion @shawfactor
Yes.
Yes. Yes.
Yes. Yes. Yes.
Yes. Yes. Yes. Yes. But... I was a little bit afraid of touching the principal data-architecture, because I only know about GatherPress since a short time. I haven't measured it, but thought about this in particular for a while now: I think there shouldn't be any negative performance-impacts by providing non-existent meta-data based on existing meta-data. And because we are going to render this data using the Block Bindings API, we want to create a render callback either. |
@stephenerdelyi @jmarx this is the data ticket for venues |
✅ Viewed |
✅ Reviewed June 22 = Confirming this has been discussed to be merged into the OpenStreetMaps work. |
@MervinHernandez this ticket opened up a bit of a can of worms for me. The approach above was a bit buggy because of the nature of the block editor I believe. I've punted this ticket to |
Your statement surprises me a bit, because this separation of concerns is exactly what I described in #626 (in general), in #629 (especially for the new venue block), and what I'm aiming for. Given that I have still not described the details of #638, I can understand your confusion. Overall the refactored, venue-related blocks will be IMHO :
When using those blocks from within an event- or other post type, you'll have to wrap them in a new venue-details block (#629), which is already working and can be tested in the GatherPress block playground. |
Yes, this is where I ended up too, though I could see Map / Address as the same block and they are tightly coupled. Website and Phone can be their own blocks. Don't be surprised by me :-) A bunch of these were written years ago and I'm starting to look at things through a fresh, new lens. How we saw the project 2+ years ago and how we see it now has changed, and so has a lot of the components of it. |
Let's make sure, that the new metas have revisions enabled. IMO this makes sense for all (the formerly mentioned) meta, which just needs to be registered separately. https://make.wordpress.org/core/2023/10/24/framework-for-storing-revisions-of-post-meta-in-6-4/ |
QUEUED to Discuss - October 25
|
In works - not ready for testing just yet. Chat |
https://codex.wordpress.org/Geodata
The text was updated successfully, but these errors were encountered: