wp-event-manager icon indicating copy to clipboard operation
wp-event-manager copied to clipboard

Date filter in range.

Open Priya-Goenka opened this issue 3 years ago • 11 comments

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.

Priya-Goenka avatar May 07 '21 06:05 Priya-Goenka

Hi. Is there any fix for this bug?

esrmnnk avatar Dec 13 '21 13:12 esrmnnk

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.

mistry-jignesh avatar Mar 22 '22 10:03 mistry-jignesh

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 .

mistry-jignesh avatar Mar 30 '22 09:03 mistry-jignesh

not resolved. or maybe arising again

Priya-Goenka avatar Sep 19 '22 12:09 Priya-Goenka

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.

mistry-jignesh avatar Sep 19 '22 12:09 mistry-jignesh

https://wordpress.org/support/topic/date-filter-for-several-days-event-not-working-as-expected/

Priya-Goenka avatar Sep 20 '22 10:09 Priya-Goenka

Hello everybody,

is there any update/solution on this issue?

from-schenefeld avatar Oct 07 '22 10:10 from-schenefeld

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.

ritakikani avatar Oct 17 '22 10:10 ritakikani

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: @.***>

from-schenefeld avatar Oct 17 '22 12:10 from-schenefeld

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

from-schenefeld avatar Oct 21 '22 06:10 from-schenefeld

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.

ritakikani avatar Oct 21 '22 06:10 ritakikani

This issue is fixed so I am going to close this issue.

krinaydhanani avatar Jun 28 '23 06:06 krinaydhanani