WordPress.org

Ready to get started?Download WordPress

Forums

Verve Meta Boxes
Date translation (2 posts)

  1. superwillyfoc
    Member
    Posted 3 years ago #

    Hi,
    Verve Meta Boxes is a awesome plugin, I am really happy using it.

    I'm trying to make the date fields show the information in another language (Spanish). WordPress is configured in that language, the translation across the panel is correct, but the dates do not get it. I have modified the file "inc/utility_MTUtil.php" and "js/date.js" but does not work, the plugin is not reading the days / months there.

    My code is:

    <?php $my_field = get_post_meta($post->ID, "fecha", $single = true); ?>
    <?php echo date("l, j/F",strtotime($my_field));?>

    Could you please help me?

    Thanks.

  2. duras
    Member
    Posted 3 years ago #

    <?php echo date("M j, y",strtotime($my_field))?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic