Home › Forums › Calendar Products › Events Calendar PRO › Putting day view in widget
- This topic has 7 replies, 5 voices, and was last updated 11 years ago by
Support Droid.
-
AuthorPosts
-
July 31, 2013 at 1:00 pm #58113
Steven Kaufman
ParticipantIs 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.
August 2, 2013 at 11:28 am #58532Leah
MemberHi 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,
LeahAugust 7, 2013 at 6:12 pm #59430Steven Kaufman
ParticipantI’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/fP1ZJKzFAugust 9, 2013 at 2:20 pm #59765Leah
MemberThanks for posting that Nabha! I’m glad you found something that’ll work for you.
August 14, 2013 at 2:49 pm #60467ali7e
ParticipantHi 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!
August 16, 2013 at 12:33 pm #60776Rob
MemberHey, thanks Nabha! Any follow-up thoughts you might have that could point ali7e in the right direction sure would be appreciated 🙂
August 28, 2013 at 1:14 pm #63430Rob
MemberProbably going to close this one due to inactivity. Thanks all!
July 7, 2015 at 6:27 am #980451Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Putting day view in widget’ is closed to new replies.
