I had a client using Marcus Sykes’s Event Manager Plugin and they wanted the ability to add the events to their Google Calendar from within WordPress. Not only that, but for anyone visiting their site to be able to add it to their own Google Calendar.
Looking at the advertised Main Features of the plugin, I noticed a bullet point that says:
- Add to Google Calendar buttons
Perfect! Should be easy.
Twenty minutes later, I still had not found this functionality. Normally with a plugin its easy….usually just an option to check or a button to click to add it. However, this plugin takes a bit of a different approach.
So in this brief tutorial, I want to show you how to do this (which implies that I eventually found it, right!!??)
Here is the event example that I will use to demonstrate, a single event page for an upcoming 5K Fundraiser:
We are going to add the Google Calendar button under the 9:00 am – 12:30 text.
Insert Add to Google Calendar buttons in Event Manager Plugin
So here is how to do it:
1. In your WordPress Dashboard, in the list on the left, go to Events –> Settings.
2. Choose the Formatting Tab and then the Events section
3. Scroll down to the Single Events Page box.
Since we are adding this Add To Google Calendar button to our individual event pages, we will use this option (instead of the actual Events page that lists all events).
Now in your WordPress dashboard, in the menu on the left, if you go to Events –> Help, then you will see all of the Placeholder Codes. There are lots of options here. You can use these to add a vast range of data to your events.
If we scroll down the Placeholder codes in the Help screen, we will find the Placeholder we want to enter in order to add the Add To Google Calendar button:
We want to choose the #_EVENTGCALLINK placeholder and add it to our Single Events Page Format
4. Add this to our Single Events Page Format box
So back to our Single Events Page format box. In this box you will recognize the placeholders. Just compare them with your Single Event Page and you will see that what is actually displayed is first determined here.
So lets say I want to add it below my Event Time. I would simply go below this section and add:
5. Save your settings and go back to your Single Event Page, and there it is!!
You can now click it to add to whatever Google Calendar you are logged into.
And that is simply how to add the Add To Google Calendar Buttons In Event Manager Plugin.