Skip to content
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

The archives only show events which end within that day/month/year #39

Closed
stephenharris opened this issue Feb 9, 2013 · 0 comments
Closed

Comments

@stephenharris
Copy link
Owner

As discussed here: http://wp-event-organiser.com/forums/topic/day-archive-not-showing-events-spanning-several-days/#post-3371

From ahto on the forums:

But if you consider my example one more time, that is not how it actually works at the moment.

  1. The event is scheduled to occur later today.
  2. It highlights todays date in the calendar widget.
  3. I click on that date — the date that event starts on — and the list is empty.

It does not show an event starting on that day if the event crosses over to the days after. It only shows the event if it also ends on the same day.

It appears this bug affect would month & year archives too. The fix is to change https://github.com/stephenharris/Event-Organiser/blob/1.7/includes/event-organiser-archives.php#L83 to

  $query->set('event_end_before', $ondate_end);

Also discussed changing it so the archives list 'running events', i.e.:

 $query->set('event_start_before', $ondate_end );
 $query->set('event_end_after', $ondate_start );
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

No branches or pull requests

1 participant