iCal Link in Custom Loop

Home Forums Calendar Products Events Calendar PRO iCal Link in Custom Loop

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #68714
    Patrick Sasser
    Participant

    When I run this code

    http://pastebin.com/F2HZq9Cm

    It doesn’t generate the correct iCal links to the specific events, instead it generates an iCal link to the entire calendar. I had this issue before and the solution I tried there didn’t fix it. https://tri.be/support/forums/topic/ical-link-isnt-correct-for-single-event/. You can see the code in action on this page http://thecrossingchurch.com/events. It is on the upcoming events section. The code I posted above is a much simpler version of what is used on this page, but even when I simply it to the above code it still doesn’t work.

    #68908
    Barry
    Member

    Hi psasser,

    This partly hinges on Javascript (the link is transformed after delivery to the web browser) and for that reason you’d need to ensure that at least tribe-events-pro.js or its minified equivalent, plus any scripts it depends upon, are enqueued on the same page as your custom loop output.

    Hope that helps!

    #68914
    Patrick Sasser
    Participant

    Ok I added this code into the functions.php file of my site
    http://pastebin.com/T4nAC1vM
    But it still isn’t working. The link was transformed from this…
    http://thecrossingchurch.com/calendar/ical
    to this…
    http://thecrossingchurch.com/events/?ical=1&tribe_display=
    I expected the link to look like this
    http://thecrossingchurch.com/event/33the-series-3/2013-10-02/?ical=1&tribe_display=
    Thanks thanks.

    #69015
    Barry
    Member

    Please don’t load both! Use either the minified script or the non-minified (minified is probably best here).

    Besides that I’m not too sure why this isn’t working for you, perhaps some other piece of data it hinges upon isn’t being outputted in your custom loop? It’s really something you’d need to dig into and as a customization isn’t I’m afraid something we can help you with much further.

    Good luck, though, and it would of course be great to hear back if you find a solution 🙂

    #981266
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘iCal Link in Custom Loop’ is closed to new replies.