• riddler16

    (@riddler16)


    Hi,

    i would like to have a full date post in my comments. Now it looks like:
    26th, November 2010 and i would like to have something like
    26th, November 2010 at 03:23 pm.

    I thought that this could be done with the lightword_simple_date() function so I changed it from:

    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time(__('F j, Y','lightword'))."</div>";

    to
    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time(__('F j, Y G:i:s','lightword'))."</div>";

    but this doesn′t do anything ??
    I hope you guys have an idea for me.

    Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • chinmoy29

    (@chinmoy)

    it would be get_the_time('F j, Y H:i:s','lightword')

    Thread Starter riddler16

    (@riddler16)

    Thanks for this fast response.
    I′ve done what u said but no change in the date format.

    chinmoy29

    (@chinmoy)

    get_the_time('F j, Y H:i:s',$post->ID) use it.

    Thread Starter riddler16

    (@riddler16)

    function lightword_simple_date(){
    global $lw_sidebox_settings;
    if($lw_sidebox_settings == "Disabled"){
    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time('F j, Y H:i:s',$post->ID)."</div>";
    }
    }

    still nothing ??

    chinmoy29

    (@chinmoy)

    function lightword_simple_date(){
    global $lw_sidebox_settings, $post;
    if($lw_sidebox_settings == "Disabled"){
    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time('F j, Y g:i a',$post->ID)."</div>";
    }
    }

    Use once

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show full date in comments’ is closed to new replies.