Skip Navigation

[Resolved] Auto delete / remove old date post in view

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to display/filter all posts greater than today

Solution:
You should filter your view by start date greater than equal to Now() by adding query filter for your custom start date field from query filter section.

You can find proposed solution with the following reply:
=> https://toolset.com/forums/topic/auto-delete-remove-old-date-post-in-view/#post-577613

Relevant Documentation:
1) https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
2) https://toolset.com/documentation/user-guides/date-filters/

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by arnoldd 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#577441

I have a search view with events that have been set by date from and date to (and place).

I want the "old events": older than today to be automatically removed in the search view. So only display - and filter between -
the events of today en the futere events.

I can not find this, is this posible?

#577566

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - are you using any third party Events plugin or you have setup CPT events using Types and start and end date using custom post fields?

#577603

Toolset: CPT events using Types and start and end date using custom post fields

#577613

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - You should filter your view by start date greater than equal to Now() by adding query filter for your custom start date field.

For example:

Custom field filter

Select items with field: start date is a UNSIGNED greater than or equal NOW()	

More Info:
=> https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
=> https://toolset.com/documentation/user-guides/date-filters/

#577622

Super. Thanks!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.