tribe_get_start_date(), Returning Publish Date

Home Forums Calendar Products Events Calendar PRO tribe_get_start_date(), Returning Publish Date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1540717
    Carrie Ann
    Participant

    Following code returning publish date instead of event start date in the UI.

    
    function get_event_date( $atts ){
    	global $post;
    	return tribe_get_start_date( $atts['id'], false, 'M d, Y' );
    }
    add_shortcode( 'mto_event_date', 'get_event_date' );
    
    #1541451
    Cliff
    Member

    Hi, Carrie Ann. I can’t advise on this custom code because it would depend on the value of $atts[‘id’] (also, FYI, $post is an unused variable), but maybe this will help: https://theeventscalendar.com/knowledgebase/embedding-single-events-tribe_event_inline-shortcode/

    I believe this would cause you not to need to create your own custom shortcode.

    Please let me know how this goes for you.

    #1557310
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_start_date(), Returning Publish Date’ is closed to new replies.