Putting day view in widget

Home Forums Calendar Products Events Calendar PRO Putting day view in widget

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #58113
    Steven Kaufman
    Participant

    Is there a simple way to get the list from /events/today/ and show in a widget? It seems like reinventing the wheel to have to write a new query. There must be documentation somewhere about this, but I can’t find it.

    #58532
    Leah
    Member

    Hi Nabha,

    Thanks for getting in touch. We don’t have a tutorial on this exact subject, although I’d like to have one for the future. I don’t know how simple this is, but there is a thread going on this topic that I think will help get you pointed in the write direction:
    https://tri.be/support/forums/topic/show-only-todays-events-2/

    I recommend that you follow the steps outlined there, and post back here if you run into trouble. We’ll do our best to help out.

    Cheers,
    Leah

    #59430
    Steven Kaufman
    Participant

    I’d rather not use WP_Query, as the link above suggests. I came up with another solution that uses the tribe_get_events function and simply breaks the loop once it advances past the target date (today):
    http://pastebin.com/fP1ZJKzF

    #59765
    Leah
    Member

    Thanks for posting that Nabha! I’m glad you found something that’ll work for you.

    #60467
    ali7e
    Participant

    Hi Nabha,

    Your solution works wonderfully well. I never managed to get the suggestions from https://tri.be/support/forums/topic/show-only-todays-events-2/ to work.

    However, it looks like with your code, you can no longer use this code (http://pastebin.com/N2YrKMJE) to show the thumbnail for each event. When I insert it into your code, it gives me the same image for all the events. Any idea how I can fix this?

    Thanks!

    #60776
    Rob
    Member

    Hey, thanks Nabha! Any follow-up thoughts you might have that could point ali7e in the right direction sure would be appreciated 🙂

    #63430
    Rob
    Member

    Probably going to close this one due to inactivity. Thanks all!

    #980451
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Putting day view in widget’ is closed to new replies.