• Resolved renoized

    (@renoized)


    So this has been driving me absolutely crazy. I’ve been using a custom theme to create my band website (only half-finished) and part of this plugin adds a tour dates widget to my homepage, which is great, but the problem is that it only displays the date in mm/dd/yyyy.

    I’ve created a topic on the plugin page, but I don’t have much hope of them responding sadly, as the developers run a business developing for wordpress, and I’m not a paying customer, hence the post here as well.

    I have two test dates saved on my site: 21/05/2018 and 10/06/2018, but only one of them is displaying because there is no 21st month.

    I’m not afraid to get my hands dirty, and I’ve dug around in the code for the plugin but I honestly can’t see any mm/dd/yyyy field or even anything that would set the date format. I’ve looked in the settings and the date format on my website is definitely set up correctly.

    Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter renoized

    (@renoized)

    Solved it!

    For anyone who wants to know:
    Changed the input type for <label for=”tour_date_info_date”> to ‘date’ instead of ‘text’ in plugin file post-type-tour-date.php

    Added “$new_format_date = date(“jS M y”, strtotime($tour_date));” to loop-tour-home.php
    (this is where you change the date format to whatever you want it to be, look up php date formats for a full list)

    and then changed $tour_date to %new_format_date where I wanted it to display.

Viewing 1 replies (of 1 total)
  • The topic ‘Change date format’ is closed to new replies.