Forums

Control date format (5 posts)

  1. philingle
    Member
    Posted 6 months ago #

    Hi

    I have built a site using a theme from Themeforest. I have tried the theme creator for help but he doesnt know the answer.

    If you look on this page
    http://nicolasbonato.com/?cat=7

    I have the date format in the main column of the page correct, but in the sidebar it is formatted in english.

    can anyone tell how I would correct this so that in the sidebar it is showing in french as well.

    Thanks for any help

    Phil

  2. paulruescher
    Member
    Posted 6 months ago #

    Are you using a plugin or a widget or something called Custom Popular Posts?

  3. philingle
    Member
    Posted 6 months ago #

    There is a Custom Category Posts widget that comes with the theme that I am using.

    I have found this code in the theme files

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Is it in there somewhere?

  4. philingle
    Member
    Posted 6 months ago #

    Hi

    Sorry, didnt realise I couldnt paste code. it is here now

    http://pastebin.com/pacGnATS

    Cheers

  5. philingle
    Member
    Posted 6 months ago #

    I have narrowed it down a bit. In some places the theme uses the following code

    <span class="post_detail"><?php echo get_the_time('F j, Y', get_the_ID()); ?>

    and then elsewhere it uses the code

    $return_html.= '<div class="post_detail">'.date('F j Y', strtotime($post->post_date));

    I think that I need to modify the format of the second bit of code to make it come up properly in French. but dont really know what I need to do. Any advice happily accepted

Reply

You must log in to post.

About this Topic