Skip Navigation

[Resolved] Is it possible to create a custom field that is valid from a range of dates?

This support ticket is created 6 years, 10 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.

Our next available supporter will start replying to tickets in about 2.17 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Franco Calcagni 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#539324

I am trying to: create a custom field that can be displayed (or get a particular value) during a rane of dates, something like the expiring date of a post. we need to allow our client to decide the starting date and the finish date of a featured post (within the two dates the post is displayed in the "featured posts" category and before and after the 2 dates the post is still be visible but not in the "featured posts" category.

I visited this URL:

I expected to see:

Instead, I got:

#539474

Dear Franco,

I suggest you setup two custom date fields for it:
1) Start date
2) End date

Then create a view list posts, and filter by:
custom field "Start date" is lower than Today
custom field "End date" is higher than Today

More help:
https://toolset.com/documentation/user-guides/date-filters/

#541050

thanks for your support, we are still evaluating how to do and in case we will reopen the ticket.

Franco

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