Date Picker in Spanish

Support MB Term Meta Date Picker in Spanish

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35323
    victoria de clascavictoria de clasca
    Participant

    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

    #35334
    Long NguyenLong Nguyen
    Moderator

    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?

    #35341
    victoria de clascavictoria de clasca
    Participant

    Hello,

    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

    #35352
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.