Date input month not translated in elementor

Support MB Views Date input month not translated in elementor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46333
    Bogdan MichiteleBogdan Michitele
    Participant

    Hi, i created an custom field date type with j F Y format for a custom post type . I set the date in admin , but when i show it in front with dynamic tag elementor widget , the month appear in english instead of my site language + format . However when i create a grid Builder card for that custom post type and i show the same date custom field , this time month is in my site language. How can i translate the month from elementor ?

    Thanks

    #46353
    PeterPeter
    Moderator

    Hello Bogdan,

    If you want to display the date in the site language, you can use the WordPress function date_i18n() and use the code to display the field value
    https://developer.wordpress.org/reference/functions/date_i18n/
    https://docs.metabox.io/fields/date/

    If you use a builder, you can create a shortcode and output the field value then add the shortcode to the builder.

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