Skip Navigation

[Resolved] Course scheduler

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

Problem:

Setup custom date field values using other plugins or custom codes.

Solution:

Two issues, see details here in Chinese:

https://toolset.com/forums/topic/course-scheduler/#post-1229158

Relevant Documentation:

https://toolset.com/documentation/customizing-sites-using-php/functions/#date

This support ticket is created 5 years 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
- 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)

Author
Posts
#1229145

Hi Luo, 我想就之前跟您请教的约课系统一事继续下去, 我仔细想了一下约课系统是一个我个人能力无法完成的系统,有挺多的JS工作因为牵扯到 批量设定可供约课的时间,以及显示出来 还要做一个日历分别显示 已约时间 可供预约时间等等。看起来Event calendar 加上他的插件是一个最接近的,但也不完全相同,因为我想要在freelancer 上面找人帮我单独做一个插件,或者基于Event calendar的插件

我的问题是,如此以来 我需要让对我知道我的功能需求以及界面图之外,Toolset方面我有什么要告诉他们的吗?谢谢你帮忙!

#1229158

你好,

我假设你是使用Types插件来创建的那些自定义日期字段(custom date fields)。

如果是的话,有两点需要注意:
- Types插件会给自定义字段的slug添加一个“wpcf-”前缀,比如你的日期字段使用的是slug: my-date,在数据库里面,这个字段的meta_key就是“wpcf-my-date”
- Types插件创建的自定义日期字段,都是使用时间戳格式(Timestamp)存储日期数据,参考文档:
hidden link
所以你的插件也需要将日期和时间存储成Timestamp格式,这样方便使用Views做查询和显示成你想要的格式

参考我们的文档:
https://toolset.com/documentation/user-guides/date-filters/
https://toolset.com/documentation/customizing-sites-using-php/functions/#date

#1232128

My issue is resolved now. Thank you!

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