Home › Forums › Calendar Products › Events Calendar PRO › Only "Today" Events Shortcode
- This topic has 11 replies, 2 voices, and was last updated 7 years, 8 months ago by
alexebo.
-
AuthorPosts
-
July 17, 2018 at 5:06 am #1576977
alexebo
ParticipantHey there
My goal is a shortcode which shows ONLY todays events.
The Shortcode where i should be able to see only todays events, shows ALL coming events.
[tribe_events view=”day” date=”2018-07-17″ ]
[tribe_events view=”list” date=”2018-07-17″]As i wanted it dynamically, i did a shortcode via functions.php.
[tribe_events view=”day” date=”‘ . current_time( ‘Y-m-d’ ) . ‘” ]
[tribe_events view=”list” date=”‘ . current_time( ‘Y-m-d’ ) . ‘”]Am i missing something? Maybe a shortcode parameter which hides the following events which are NOT today?
Best,
AlexJuly 17, 2018 at 5:20 am #1576990Courtney
MemberHi there Alex
Unfortunately, this is not something we currently have a way to achieve dynamically. If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.
You can vote for it at https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/11233989-today-s-events-widget.
You can see others that have hidden the extra information in the this thread: https://theeventscalendar.com/support/forums/topic/widget-to-display-only-events-with-todays-date/.
Is there anything else I can help you with?
Thanks
Courtney πJuly 17, 2018 at 5:44 am #1577006alexebo
ParticipantBasically i am just asking for a shortcode which prints out ONLY the todays events.
I will do the dynamic stuff myself π
July 17, 2018 at 6:05 am #1577026Courtney
MemberHi Alex
[tribe_events view=”day” date=”2018-07-17″] is the closes we’ve got for you. So sorry about that. I would like to see this expanded too.
Thanks
Courtney πJuly 17, 2018 at 6:22 am #1577054alexebo
ParticipantAh okay – so there is basically no shortcode for showing ONLY todays events – am i right?
July 17, 2018 at 6:57 am #1577101alexebo
ParticipantThis reply is private.
July 17, 2018 at 11:04 am #1577447Courtney
MemberThis reply is private.
July 24, 2018 at 5:29 am #1582167alexebo
ParticipantHi, Courtney
All these shortcodes do not show “only” todays events.
They show upcoming events aswell.I am searching for a snippet/shortcode which shows only the events from today, not the events from tomorrow and so on.
Best,
AlexJuly 24, 2018 at 2:20 pm #1582687Courtney
MemberHey Alex. Can you show me a screenshot of the editor and the published location of your shortcode for “today”? When I test this, I only see today’s events, not future events.
Thanks
Courtney πJuly 25, 2018 at 2:23 am #1582875alexebo
ParticipantThis reply is private.
July 25, 2018 at 2:25 am #1582877alexebo
ParticipantBtw – the edit function does not work. I tried to edit my last post to mark it private.
July 25, 2018 at 7:03 am #1583031Courtney
MemberHey Alex
When you go to Events Β» Settings Β» Display Β» Enable event views, do you have Day View enabled?
If that doesn’t resolve showing in day view vs list, please send me a screenshot of the editor of this post.
[tribe_events] is designed to be used only once per page/post, as described near the end of https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/.
If you would like to override that (which we don’t recommend), this snippet should do the trick. Add this snippet to either your child themeβs functions.php file or use the My Custom Functions plugin.Β
function reregister_tribe_events_shortcode( $atts ) { $shortcode = new Tribe__Events__Pro__Shortcodes__Tribe_Events( $atts ); return $shortcode->output(); } add_action( 'init', 'reregister_tribe_events_shortcode', 100 );Please let me know if enabling day view resolves part of this.
Thanks
Courtney πAugust 16, 2018 at 9:35 am #1599112Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Only "Today" Events Shortcode’ is closed to new replies.
