Only "Today" Events Shortcode

Home Forums Calendar Products Events Calendar PRO Only "Today" Events Shortcode

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1576977
    alexebo
    Participant

    Hey 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,
    Alex

    #1576990
    Courtney
    Member

    Hi 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 πŸ™‚

    #1577006
    alexebo
    Participant

    Basically i am just asking for a shortcode which prints out ONLY the todays events.

    I will do the dynamic stuff myself πŸ™‚

    #1577026
    Courtney
    Member

    Hi 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 πŸ™‚

    #1577054
    alexebo
    Participant

    Ah okay – so there is basically no shortcode for showing ONLY todays events – am i right?

    #1577101
    alexebo
    Participant

    This reply is private.

    #1577447
    Courtney
    Member

    This reply is private.

    #1582167
    alexebo
    Participant

    Hi, 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,
    Alex

    #1582687
    Courtney
    Member

    Hey 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 πŸ™‚

    #1582875
    alexebo
    Participant

    This reply is private.

    #1582877
    alexebo
    Participant

    Btw – the edit function does not work. I tried to edit my last post to mark it private.

    #1583031
    Courtney
    Member

    Hey 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 πŸ™‚

    #1599112
    Support Droid
    Keymaster

    Hey 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

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Only "Today" Events Shortcode’ is closed to new replies.