Fix inherited queries using event-query-block#1379
Conversation
Preview changes with PlaygroundYou can preview the recent changes for PR#1379 with the following PHP versions: PHP Version 8.4
PHP Version 8.2
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
|
@carstingaxion can this one be closed? I added a setting that defaults event archive to upcoming, but can also be set to past and none. I believe this PR was debugging this functionality and related. #1587 |
|
I guess this was and maybe still is related to a yet unset gatherpress_event_query var. Let's test it together with #1075 If 1075 is working fine now, this one can be closed. |
|
It might need to be extended for all event archives (topics, etc) which is fine. |
Maybe even more general: for every query that has a Event supporting type, but not the event-query variation set. |
Need to think about that because the Settings are pretty tied to the Event/Venue post types as they appear in the Events admin menu. With other CPTs I think people will be explicitly setting things probably via filter which is also available right now for this. |
|
Mentally, I'm not at custom post types, but just at how WordPress core generates the request on a (topic) taxonomy archive, if no custom template is registered. |
I just don't want it to get too confusing is all. I think we can sort this out nicely though. |
Description of the Change
Closes #
How to test the Change
Changelog Entry
Credits
Props @username, @username2, ...
Checklist: