PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Filter posts by set date count to current date: 7 days, 30 days, 3 months, 6 months

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I want to have a function where we will set the date of the event that happened via ACF field for the posts, then on the home page we will filter the posts by options like: - 7 days ago - 30 days ago - 3 months ago - 6 months ago

the date is calculated from the date we set in ACF field to the present time.

Can we do that with your plugin?

If no, is it possible to have a custom code for that feature?

 

Thanks

Hello

With MDTF it is possible to filter dates using logic"BETWEEN" trought meta field of type calendar https://share.pluginus.net/image/i20250814133753.png . But on you task there is somethhing another, but I neeed clarification of logic: -> Let’s say the user selects the “30 days ago” button. My question is:
Do you expect to display only the events that happened exactly on that date (30 days ago), or is there supposed to be a time range?

In other words — when you say “show events that happened 30 days ago,” what is the exact time frame you want to present to the user? Please clarify this so I can better understand how to understand this feature.

Welcome ...

Hi

Thank you for your reply, not exactly Date, just the time range, 30 days ago can be 10 days, 20 days or 29 days....

Hello

Unfortunately, the plugin does not have such a feature. To implement this type of filter, you need to customize the code