Skip Navigation

[Résolu] Format wpv-post-field

This support ticket is created Il y a 5 années et 9 mois. 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.

Our next available supporter will start replying to tickets in about 1.78 hours from now. 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)

Marqué : ,

This topic contains 2 réponses, has 2 voix.

Last updated by marijkeM Il y a 5 années et 9 mois.

Assigned support staff: Luo Yang.

Auteur
Publications
#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: Anglais (English ) Chinois simplifié (简体中文 )

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.