Custom Event Date & Time Within List Widget

Home Forums Calendar Products Events Calendar PRO Custom Event Date & Time Within List Widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67076
    Curtis Gadula
    Participant

    I have searched through the documentation and have had no luck making this work. We are switching over from a different calendar plugin and I’d like to keep the event list on our front page looking the same.

    To do this, different classes need to be wrapped around different pieces of the date and time (ex “event-day”, “event-month”, “event-time” etc). I have made a copy of list-widget.php in the tribe-events/widgets/ folder within my theme. I have looked at the documentation here (http://docs.tri.be/Events-Calendar/function-tribe_event_format_date.html) and must be missing something.

    For example, I would expect the following piece of code to return a three letter version of the day name:

    But it returns the entire date/time string:
    2013-09-20T16:37:17+00:00 4:37 pm

    I could just grab the pieces I need using substr(), but I figured I’d ask to try and do it correctly.

    Thanks in advance!

    Thanks,
    Jordan

    #67274
    Barry
    Member

    Hi Jordan,

    Looks like we’re missing some code that you posted. Unfortunately the forum does not handle code very nicely and it’s better to share it by linking to the code via a service like Pastebin or Gist.

    If you could do that that would be awesome 🙂

    #67347
    stevencombes
    Participant

    Hi Barry, & Jordan,

    I’m gonna jump in on this thread too. I’m hoping to do something very similar to this where I print the each individual event’s date elements in List View.

    For example, for an event that runs from September 25-27, I’d like to echo within the list view template the following, and print them separately:

    SEP
    25-27

    #67360
    Barry
    Member

    Hi Steve, definitely feel free to monitor this thread but I don’t want to create confusion or derail it from helping the original poster – Jordan in this case – as it can get pretty messy when helping different people at different levels with subtly different problems (you are interested in the list view, Jordan is interested in the list widget etc). So, ideally, you would create a new thread of your own 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom Event Date & Time Within List Widget’ is closed to new replies.