Title: Problem using outside WP
Last modified: August 22, 2016

---

# Problem using outside WP

 *  Resolved [rusty66](https://wordpress.org/support/users/rusty66/)
 * (@rusty66)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/)
 * Greetings,
    I am trying to use this widget outside wordpress. I do have to as
   the site is not on WP and we used the old Google Calendar Widget in the past.
 * I am not sure where I put the Calendar ID to show our events?
 * Looking at that part of the script in the stand_alone.html:
 * <script type=”text/javascript” defer>
    ko_calendar.loadCalendarDefered( ‘YOUR
   API KEY HERE’, ‘ko_calendar-widget_title’, ‘ko_calendar-widget_events’, 10, false,‘
   developer-calendar@google.com’, ‘canadian@holiday.calendar.google.com’, ‘#stardate@group.
   v.calendar.google.com’, ‘[STARTTIME – ][TITLE]’ ); </script>
 * I replaced the YOUR API KEY HERE with my google API. If I upload that I get “
   Jan 19” in the calendar box, nothing more. There is an event for today, Jan 19
   and another one for tomorrow in our Google calendar.
 * Any help would be greatly appreciated.
 * Many thanks
    Boris
 * [https://wordpress.org/plugins/google-calendar-widget/](https://wordpress.org/plugins/google-calendar-widget/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [rusty66](https://wordpress.org/support/users/rusty66/)
 * (@rusty66)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687258)
 * BTW I looked through the various files and code in the download package but didn’t
   find where to replace the Calendar ID.
 * Many thanks!
 *  Thread Starter [rusty66](https://wordpress.org/support/users/rusty66/)
 * (@rusty66)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687287)
 * Hello
    and sorry for my impatience. I resolved that issue myself by changing 
   the IDs after the False. I thought these were default IDs. Found the relevant
   hint in another post here.
 * Now there are other issues (Date showing incorrectly, full day event not showing),
   but I will read carefully through here first before posting more.
 * Cheers
    Boris
 *  Plugin Author [Poco](https://wordpress.org/support/users/poco/)
 * (@poco)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687337)
 * Can you post a link or the full output from your browser debug console (Press
   F12) when loading the page that I can look at?
 *  Thread Starter [rusty66](https://wordpress.org/support/users/rusty66/)
 * (@rusty66)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687341)
 * Hi,
    That’s the stand_alone.html with the data for my calendar: [](http://kgw-web.de/2015calendar/examples/stand_alone.html)
 * And that’s the URL to the Google Calendar: [](http://www.kgw-web.de/aktuelles/termine.php?i2s1)
 * As you can see there’s a full day event on Jan 20 which is not showing. Additionally
   there are some events in February and I had thought that the widget would show
   the next five events, as of today (Jan 19) it is only showing today’s event.
 * Cheers
    Boris
 *  Thread Starter [rusty66](https://wordpress.org/support/users/rusty66/)
 * (@rusty66)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687343)
 * ?? What went wrong there?
 * Standalone:
    [http://kgw-web.de/2015calendar/examples/stand_alone.html](http://kgw-web.de/2015calendar/examples/stand_alone.html)
 * Full calendar:
    [http://www.kgw-web.de/aktuelles/termine.php?i2s1](http://www.kgw-web.de/aktuelles/termine.php?i2s1)
 *  Plugin Author [Poco](https://wordpress.org/support/users/poco/)
 * (@poco)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687456)
 * Alright, I figured it out. I broke the stand alone page when I added localization.
   The calendar is now expecting an object called ko_calendar_loc.
 * Try inerting the ko_calendar_loc object into the page as follows.
 *     ```
       <script type="text/javascript" defer="defer">
       		// Localization table normally supplied by the WordPress loc system.
       		ko_calendar_loc = {
       			'all_day':'All Day',
       			'all_day_event':'All Day Event'
       		};
   
       		ko_calendar.loadCalendarDefered(
       			'YOUR KEY',
       			'ko_calendar-widget_title',
       			'ko_calendar-widget_events',
       			10,
       			false,
       			'developer-calendar@google.com',
       			'canadian@holiday.calendar.google.com',
       			'#stardate@group.v.calendar.google.com',
       			'[STARTTIME - ][TITLE]'
       		);
       	</script>
       ```
   
 * I will make a better patch

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problem using outside WP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-calendar-widget.svg)
 * [Google Calendar Widget](https://wordpress.org/plugins/google-calendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-widget/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Poco](https://wordpress.org/support/users/poco/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/problem-using-outside-wp/#post-5687456)
 * Status: resolved