• Please change this statement in single.php

    echo get_the_date('M'); ?> <?php echo get_the_date('j,'); ?> <?php echo get_the_date('Y'); */ ?>

    with

    the_date();

    and also this statement in \newsup\inc\ansar\template-tags.php

    echo esc_html(get_the_date('M j, Y'));

    with

    the_date();

    need to have the date localized to the general settings of the blog.

    I couldn’t find an easy solution to do this with add_action or add_filter, so I had to change the NewsUp code, but it’s not a good solution. When the theme updates I will have to change the code again.
    The solution I proposed makes the theme faster (less instructions) and more general, for all the languages used, with a choice of formatting that is made from the general wordpress settings and does not depend on non-modifiable choices

    • This topic was modified 4 years, 3 months ago by gakradmin.
    • This topic was modified 4 years, 3 months ago by gakradmin.
  • The topic ‘Date localized’ is closed to new replies.