Skip Navigation

[Resolved] custom field of type "date" appear strange

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 barakl 6 years, 10 months ago.

Assigned support staff: Waqas.

Author
Posts
#279111
screenshot-orpak tweendev com 2015-01-29 16-36-27.png

I am trying to: show date from custom field:
[wpv-post-field name="wpcf-event-starting-date" style="text" format="F j, Y"]

I visited this URL: hidden link

I expected to see: in the middle of the page under "upcoming events" I expected to see the date like in news (the news date is the post published date, while the event date is a custom field type date)

Instead, I got: a strange numbers

#279348

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

[wpv-post-field] displays the raw data from the field (https://toolset.com/documentation/views-shortcodes/#wpv-post-field).

Use the Types plugin's [types] shortcode to display formatted fields. Like below:

[types field="event-starting-date" format="F j, Y"][/types]

Please see https://toolset.com/documentation/functions/#date for more details.

#279382

amazing!