Skip Navigation

[Resolved] Format wpv-post-field

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.

This topic contains 2 replies, has 2 voices.

Last updated by marijkeM 4 years, 9 months ago.

Assigned support staff: 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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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.