WordPress.org

Support

Support » Themes and Templates » Alex: please improve date format

Alex: please improve date format

  • Hi Alex,

    could you please improve the date format of HUEMAN?

    It is really lots of work and files to change, just to change the date format for other languages like German. If you’d use the admin format everywhere, it would be much better:

    <?php the_time(get_option('date_format')); ?>

    instead of

    <?php the_time('j M, Y'); ?>

    thanks, appreciate!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Please write in English!

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    That was spam an has been taken care of.

    Will be great, if Alex upgrade this in next version:

    content.php
    content-featured.php

    <h2 class=”post-title”>
    for
    <h2 class=”post-title entry-title”>

    <p class=”post-date”><?php the_time(‘j M, Y’); ?></p>
    for
    <p class=”post-date date updated”><?php the_time(‘j M, Y’); ?></p>

    single.php

    <h1 class=”post-title”><?php the_title(); ?></h1>
    for
    <h1 class=”post-title entry-title”><?php the_title(); ?></h1>

    Yes, but the date format is also in

    1. alx-posts.php
    2. alx-tabs.php

    Hi!

    The reason the admin-date is only used in the single.php file, is because if any of the date formats are set that to the longer ones (more than 6 chars), it could break the layout and not look so good.

    I thought about it, but opted not to for that reason. I want to stop users from breaking it as much as possible (most are never changing these options), although I understand it would be a lot easier for those who wish to use another format. It’s a bit 50/50.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Alex: please improve date format’ is closed to new replies.