Mailpoet 电子邮件中的自定义字段(日期)格式问题

发布于 2025-01-17 07:48:51 字数 352 浏览 1 评论 0原文

在我的表单中有一个自定义字段,允许选择日期,而不仅仅是今天等,其简码为 [subscriber:cf7]。输入为日、月、年。

在发送的电子邮件中,此短代码显示(例如)2010-11-26 00:00:00。

我找不到任何地方可以格式化自定义字段的输出以消除时间元素,或将日期格式化为 dd-mm-yyyy。

任何有关 mailpoet 设置或插入 css 来解决此问题的帮助将不胜感激。

我尝试了几个 css 片段试图解决该问题,但似乎没有任何改变电子邮件中的输出。

我尝试格式化粘贴在 mailpoet 中的电子邮件模板中的短代码,例如。 [订阅者:cf_7 |日期:自定义 |格式:l jS FY],但这也没有帮助。

In my form is a custom field to allow for a date to be picked, not just today etc., which has the shortcode [subscriber:cf7]. The input is day,month,year.

In the email that is sent this shortcode displays (eg.) 2010-11-26 00:00:00.

I cannot find anywhere to format the output of the custom field to eliminate the time element, or to format the date into dd-mm-yyyy.

Any help with either the settings of mailpoet, or inserting css to over come this would be greatly appreciated.

I have tried several css snippets trying to resolve the issue, but nothing seems to change the output in the email.

I have tried to format the shortcode that is pasted in the email template within mailpoet eg. [subscriber:cf_7 | date:custom | format:l jS F Y], but that didn't help either.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文