wp-event-manager
wp-event-manager copied to clipboard
Date filter in range.
I set up a start and end date, but in the event page, when i choose a date/dates between start and end dates, the event doesn’t show up. However if I choose the specific start date, or the specific end date, or a range that includes the start or the end date, the event is shown as it should.
Example: Start date: 1/5/2021 End date: 5/5/2021 If I choose 1/5/2021 or 5/5/2021 in the callendar, the event displays. If I choose 4/5/2021, or (2/5/2021 to 4/5/2021) the event is not being displayed.
Hi. Is there any fix for this bug?
Here I select the start date - 1/5/2021 - Here event is not display.
If select end date - 5/5/2021- Here only 2 events are display.
4/5/2021, or (2/5/2021 to 4/5/2021) the event is not being displayed.
I have verified issue . Now this issue is fixed & working fine.
Here range that includes the start or the end date, the events are shown .
So I closed the issue .
not resolved. or maybe arising again
Verified this issue .
I select the start date - 1/5/2022 - Here event is display.
If selected date range as - (2/5/2022 to 4/5/2022) - Here event is display
When event start date is not availabel then event are not filter.
If select end date - 5/5/2022- Here events is not display.
Selected date 4/5/2022 - Here event is not display.
https://wordpress.org/support/topic/date-filter-for-several-days-event-not-working-as-expected/
Hello everybody,
is there any update/solution on this issue?
As per our plugin current feature, we are providing date filter as on event start date only, not between start-end date. For urgent resolve, we are already providing hooks and filters to customize anything to customers, so for this you can customize with below hook/filter.
$query_args = apply_filters( 'get_event_listings_query_args', $query_args, $args ); do_action( 'before_get_event_listings', $query_args, $args );
But regarding this new feature we need to discuss this topic with our senior.
Thank you for this Rita!
But unfortunately I get an error on my site when I paste the code into function.php. Is there anything else I have to do? Can you give me please a short explanation what steps I must do, to reach the aim.
[image: grafik.png]
Thank you very much and best wishes Andreas
Am Mo., 17. Okt. 2022 um 12:49 Uhr schrieb Rita Kikani < @.***>:
As per our plugin current feature, we are providing date filter as on event start date only, not between start-end date. For urgent resolve, we are already providing hooks and filters to customize anything to customers, so for this you can customize with below hook/filter.
$query_args = apply_filters( 'get_event_listings_query_args', $query_args, $args ); do_action( 'before_get_event_listings', $query_args, $args );
But regarding this new feature we need to discuss this topic with our senior.
— Reply to this email directly, view it on GitHub https://github.com/wpeventmanager/wp-event-manager/issues/792#issuecomment-1280665670, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3PC43CNNGSVCHILUQT5HV3WDUVM3ANCNFSM44JCOPIA . You are receiving this because you commented.Message ID: @.***>
Hi @Priya-Goenka
do you think someone could support me for above described issue? An answer on this would not be only beneficial for me but also for others using WP Event Manager as I saw this request also on wordpress.org-Support page.
It would be very helpful and I think it should not be that hard to summarize the steps to shortly.
Thanks so far and best wishes Andreas
Hi @from-schenefeld ,
As above, a mention that we are providing hooks and filters to customize many more in our plugin.so, if you want to customize filter as per your requirement, you can use below hook/filter.
$query_args = apply_filters( 'get_event_listings_query_args', $query_args, $args ); do_action( 'before_get_event_listings', $query_args, $args );
You need to use this filter/hook to customize code.you can not add this above code in your theme functions.php file but you need to use this hook/filter and in that you need to write code to customize filter.
And yes, we will provide this feature in future if will approved from our senior team.
This issue is fixed so I am going to close this issue.