Meta Box
Support › MB Term Meta › Date Picker in Spanish
Hello,
I am calling the datetime field in a Repeater of OXygen builder. It displays the date in English. And the wordpress is set to spanish.
The id of the custom field of the date is: "fecha_del_evento"
I added a code snippet (a s I saw in the forum): $date = get_post_meta( get_the_ID(), 'fecha_del_evento', true ); echo date_i18n( 'F j, Y', $date );
It doesnt change anytihng
thanks for the help
Hi,
Can you please deactivate the plugin Oxygen and add the code to the post template of a theme to check the code works correctly?
I deactivated oxygen as you recomended I created a view for date custom field, inserted in a shortcode in Guttenberg editor, and the page it displays in english still
The helper shortcode [rwmb_meta] does not support translating the date into the French language. You need to use the WordPress function date_i18n() and enable timestamp setting to display the date in French. Refer to this topic https://support.metabox.io/topic/problem-displaying-images-videos-and-date-format-in-french/#post-35251
[rwmb_meta]
date_i18n()
timestamp