Event day not showing on events listing

Home Forums Calendar Products Events Calendar PRO Event day not showing on events listing

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26220
    mhcalumnae
    Participant

    On my event listing, only the month and year are showing – not the day. So I have an event that’s on 30th December 2012 but the event listing is only showing December 2012. That’s not very useful as nobody will know which day the event is on!

    Have I missed a setting or something?

    Here is a link to a screenshot: http://postimage.org/image/dr8pdt8u3/

    #26221
    mhcalumnae
    Participant

    I’ve figured out that it’s related to the date format in the wordpress general settings. I need my posts to be in the format e.g. December 2012, so I have the date format set as F Y. Is there any way to change the date format in The Events Calendar?

    #26222
    Barry
    Member

    Hi Ed – you’re absolutely correct, it does default to the format specified in the WordPress settings.

    You can however override this, though you would need to familiarize yourself with theming and customization for The Events Calendar – so please take a look at our Themer’s Guide (link over on the right under Useful Resources) if you haven’t already done so.

    What you would need to do is change the parameters of the tribe_get_start_date() function. By default it is used in the list.php template (and other templates) something like this:

    echo tribe_get_start_date( null, false );

    The same function does allow you to optionally specify a date format:

    echo tribe_get_start_date( null, false, 'jS F Y' );

    Hope that helps 🙂

    #26236
    mhcalumnae
    Participant

    Brilliant. Many thanks.

    #26237
    Barry
    Member

    No problem!

    #977930
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Event day not showing on events listing’ is closed to new replies.