Skip to content

feat: switch event date queries from postmeta to event_dates table#51

Merged
chubes4 merged 1 commit intomainfrom
feature/event-dates-table
Mar 23, 2026
Merged

feat: switch event date queries from postmeta to event_dates table#51
chubes4 merged 1 commit intomainfrom
feature/event-dates-table

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented Mar 23, 2026

Summary

Update all event datetime queries to use the new datamachine_event_dates table from data-machine-events.

  • related-events.php — posts_clauses filter for upcoming + ordering
  • location-seo.php — posts_clauses filter for upcoming count
  • venue-map.php — posts_clauses filter for upcoming count
  • MarketReportAbilities.php — raw SQL JOIN switched to event_dates table

Depends on

Update all event datetime queries to use the new datamachine_event_dates
table from data-machine-events. Replaces meta_query and raw SQL postmeta
JOINs with posts_clauses filters and direct event_dates table JOINs.

- related-events.php: posts_clauses filter for upcoming + ordering
- location-seo.php: posts_clauses filter for upcoming count
- venue-map.php: posts_clauses filter for upcoming count
- MarketReportAbilities: raw SQL JOIN switched to event_dates table
@chubes4 chubes4 merged commit 46d3442 into main Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant