• Frituurman

    (@frituurman)


    Hello there!

    I’m new here and pretty new at WordPress. My problem, I want my dateformat in matches.php to be like:

    dd-mm-yyyy e.g. 14-03-2014

    Now it’s

    2014-03-14th

    I’ve been nosing around and I had it fixed by editing core.php, but when I did that, the matches didn’t show up right (I had a ‘next match’ that should’ve been in March, but it showed one in May).

    Is there any way to change the dateformat directly in matches.php? Somewhere in this piece of code: <?php echo $match->date." ".$match->start_time." ".$match->location ?>

    Kind regards!

    Frituurman

    https://wordpress.org/plugins/leaguemanager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    When the matches are entered and updated, the database needs the date/time of matches formatted a certain way, which is probably why you aren’t getting anything saved anymore. If you want the output (standings for instance), you can format that any way you like, but the input has to be formatted very specifically.

    Any time you are looking to make custom modifications, be care of editing files outside the templates folder, and even then, put custom templates in a leaguemanager folder within your theme folder. Everything you’ve done will get overridden when I post an update either today or tomorrow… (back up your files!).

    Let me get this update out the door, then we can have a look at what you need, give me a day or so.

    Thread Starter Frituurman

    (@frituurman)

    Great! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Dateformat in matches.php’ is closed to new replies.