Widget showing Published Date instead of Start Date

Home Forums Calendar Products Events Calendar PRO Widget showing Published Date instead of Start Date

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #103216
    Darnell
    Participant

    Hi, in list-widget.php, I’m trying to show the month and date of the event, but right now it is showing the date the event post was created. Here is what I have:

    <div class=”caldate”>
    <p><?php the_time(‘d’); ?> <span><?php the_time(‘M’); ?></p>
    </div>

    I had it working correctly before I updated the plugin, but the page and functions seem to be completely different.

    Any ideas?

    #103308
    Barry
    Member

    Hi!

    It’s usually best to use our own purpose designed template tag functions for things like this, such as tribe_get_start_date().

    Does that help?

    #103411
    Darnell
    Participant

    That definitely helped. I tried using that function before but I didn’t write it correctly. Thanks for the hint 😉

    #138218
    Barry
    Member

    (Closing this thread as it’s been quite a while – if we can help with anything else please do create a new thread. Thanks!)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Widget showing Published Date instead of Start Date’ is closed to new replies.