Skip Navigation

[Resolved] Format wpv-post-field

This support ticket is created 7 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.

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 marijkeM 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#494146

I want to format the custom field _EventStartDate from The Events Calendar plugin. When I use [wpv-post-field name='_EventStartDate'] in the code of my view I get the full date and time. But I only want to show the year and month.

I read this post: https://toolset.com/forums/topic/custom-field-of-type-date-appear-strange/
and tried [types field='_EventStartDate' format='M'][/types] to get the month, but I get nothing.

Can you help me out?

#494375

Dear marijke,

The solution you mentioned above is for custom date field created with Types plugin, in your case the field is created by other plugin (The Events Calendar), please try the solution of another thread:
https://toolset.com/forums/topic/date-formating-on-another-cpts-date-field/#post-268972

#494392

Thank you Luo,

that was the trick. I am sorry I did not find this solution myself.

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