Problem:
The user was using a feature in the Oxygen builder to get custom fields. The date field was displayed as numbers.
Solution:
Toolset stores the date field as a timestamp, the total number of seconds since the Unix Epoch (01/01/1970)
- https://www.php.net/manual/en/function.time.php
- https://www.epochconverter.com/
So, In the query filter, you should use "meta_type=NUMBER" instead of "meta_type=DATE". This will solve the sorting issues if they appear. Screenshot; Screenshot 2021-04-03 at 16.03.20.png
Regarding the display of the date, you need to check with the Oxygen support team how to format a timestamp into a date string, or you need to use Types shortcodes instead of the "oxygen shortcode".
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.
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: Africa/Casablanca (GMT+01:00)
This topic contains 2 replies, has 2 voices.
Last updated by 3 years, 10 months ago.
Assisted by: Jamal.