Add to calendar in custom emails & third party plugins

Home Forums Calendar Products Events Calendar PRO Add to calendar in custom emails & third party plugins

  • This topic has 7 replies, 2 voices, and was last updated 8 years ago by ccg2017.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1470872
    ccg2017
    Participant

    We’re using Events Calendar Pro with a custom setup involving Ninja Forms, and we want to be able to add the “Add to calendar” (Google/ICAL) links within the form confirmations and messages. Is there a way to pull that easily or would we need to build the required links with all of the values from the event? (This page outlines what we’d need to include, for instance: https://stackoverflow.com/questions/10488831/link-to-add-to-google-calendar.)

    For instance, we’re using {post_meta:event_time} and similar to display event values in Ninja Forms.

    Any help on this would be greatly appreciated as we haven’t been able to track down a solid answer.

    #1470905
    ccg2017
    Participant

    I should add that the post_meta above is accomplished with merge tags. I can build the calendar links with a merge tag, but I wanted to see if there was a better solution.

    As an alternative too, if there’s a way to use tribe_get_single_ical_link outside the loop, that would work.

    • This reply was modified 8 years, 1 month ago by ccg2017. Reason: More details
    #1471915
    Andras
    Keymaster

    Hi Lindsey,

    First, please let me note that we are fairly limited in how much support we can give for custom development questions like that.

    Even so, we’d love to help you if we can. We do need to prioritize requests from other customers right at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help we’ll be happy to do so.

    In the meantime, if there is any more information you can share (including mocks) that will help us to better understand what you are seeking please do feel free to add them to this ticket.

    If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.

    Thanks!

    Andras

    #1471918
    Andras
    Keymaster

    Meanwhile I also got some info from a colleague.

    If you need to use a function that is meant to be used in the Loop, outside of it you do this:

    setup_postdata($id); // the post I need
    // here run Loop functions
    reset_post_data(); // and restore the loop to its original state

    If Loop functions are correctly written this works.

    Hope this helps you to get started. Would be happy to hear back.

    A.

    #1472358
    ccg2017
    Participant

    Thanks, András. I appreciate the tip on this. I’m testing this now and I’ll let you know how it works out.

    #1472615
    Andras
    Keymaster

    Eager to hear! 🙂

    #1491889
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Add to calendar in custom emails & third party plugins’ is closed to new replies.