Skip Navigation

[Resolved] Custom field filter date

This support ticket is created 2 years, 1 month 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.

Our next available supporter will start replying to tickets in about 1.00 hours from now. 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 2 replies, has 2 voices.

Last updated by joachimS-2 2 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2474357

Tell us what you are trying to do?
I want to create a filter that hide or ignore a custom post type (event) post with a date field.
Custom posts with a field date that are in the past should be hidden.

Is there any documentation that you are following?
https://toolset.com/documentation/legacy-features/views-plugin/date-filters/

Is there a similar example that we can see?

What is the link to your site?
hidden link

#2474501

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand, you want to display on the future date event posts with your view.

What if you edit your view and add the "Query Filter" for your custom date field and set it as "UNSIGNED" greater than equal to Now().

For example:

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

You can locate the "Query Filter" section when you select your view block and on right side bar under "Content Selection" tab you will find the "Query Filter" section.

Does that helps?

#2474633

My issue is resolved now. Thank you!