← Go back to the Google Calendar Events plugin homepage
The event display builder is a feature (introduced in version 0.5) that allows you to customise the information that is displayed for events. It is much more flexible than the ‘old’ simple display options, but perhaps harder to get to grips with initially, hence this guide! If, after reading this guide, you have further questions, please ask in the comments below.
Jump To:
- Introduction
- Event information shortcodes
- Feed information shortcodes
- Conditional shortcodes
- Attributes
- Examples
- Further notes
Introduction
The event display builder is simply a text field into which you enter basic HTMLand shortcodes. When the plugin generates the calendar grid or list to display on your page, post or widget, it replaces the shortcodes with the relevant information for each event. You may already be familiar with WordPress shortcodes, as they are widely used in many plugins (including this one!). The event display builder shortcodes use the same concept (and in fact much of the same code), but can only be used in the event display builder field. Here’s a couple of example feeds, with example events that I will use to explain the various shortcodes that you can use:
Feed 1
Feed ID: 1
Feed title: Exciting things
Event 1
Event title: Trip to the seaside
Date / time: 16th April, all day
Location: Whitby, North Yorkshire
Description: A day out in Whitby! Remember to bring an umbrella as it’ll probably rain
Event 2
Event title: Football match
Date / time: 19th April, 15:00 until 17:00
Location: Glanford Park, Scunthorpe
Feed 2
Feed ID: 2
Feed title: Boring things
Event 1
Event title: Dentist appointment
Date / time: 14th April, 11:00 until 12:00
Description: Just a check-up
Event 2
Event title: Cardboard box conference
Date / time: April 21st and 22nd, all day both days
Location: Birmingham NEC
Description: The latest advances in cardboard box technology
Event Information Shortcodes
These are the basic shortcodes that are replaced with event information when the plugin generates the grid or list.
[event-title]
Simply displays the event title. So, for event 1 from feed 1, ‘Trip to the seaside’ would be shown.
Possible attributes: html, markdown
[start-time]
Displays the start time of the event. The time format is determined by the ‘Time format’ option in the feed settings, or if this has been omitted, by the WordPress ‘Time format’ option (in Settings > General).Assuming that the time format for feed 2 is set to g:i a, this shortcode would output ’11:00 am’ for event 1 from feed 2.
Possible attributes: offset
[start-date]
Displays the start date of the event. The date format is determined by the ‘Date format’ option in the feed settings, or if this has been omitted, by the WordPress ‘Date format’ option (in Settings > General).Assuming that the date format for feed 2 is set to F j, Y, this shortcode would output ‘April 21, 2011′ for event 2 from feed 2.
Possible attributes: offset
[start-custom]
Displays the start date / time of the event. It uses whatever format you specify in the format attribute. This gives greater flexibility when displaying the start time and date together than using both [start-time] and [start-date].For example, if you entered jS F Y \\a\\t g:i a in the format attribute, the start date / time for event 2 from feed 1 would be displayed like this: ’19th April 2011 at 3:00 pm’.
Possible attributes: format, offset
[start-human]
Displays the amount of time until the event starts, or how long ago it started (the difference between ‘now’ and the start time of the event) in human-readable format, such as ’1 hour’, ’4 days’, ’15 mins’ etc.The output of this shortcode obviously depends on the time ‘now’, and is best used in conjunction with the [if-started] and [if-not-started] conditional shortcodes, which allow you to display something like ‘Started 1 hour ago’, or ‘Starts in 30 mins’.
Possible attributes: precision, offset
[end-time]
Displays the end time of the event. The time format is determined by the ‘Time format’ option in the feed settings, or if this has been omitted, by the WordPress ‘Time format’ option (in Settings > General).Assuming that the time format for feed 2 is set to g:i a, this shortcode would output ’12:00 pm’ for event 1 from feed 2.
Possible attributes: offset
[end-date]
Displays the end date of the event. The date format is determined by the ‘Date format’ option in the feed settings, or if this has been omitted, by the WordPress ‘Date format’ option (in Settings > General).Assuming that the date format for feed 2 is set to F j, Y, this shortcode would output ‘April 22, 2011′ for event 2 from feed 2.
Possible attributes: offset
[end-custom]
Displays the end date / time of the event. It uses whatever format you specify in the format attribute. This gives greater flexibility when displaying the end time and date together than using both [end-time] and [end-date].For example, if you entered g:i a \\o\\n F jS Y in the format attribute, the end date / time for event 2 from feed 1 would be displayed like this: ’5:00pm on April 19th 2011′.
Possible attributes: format, offset
[end-human]
Displays the amount of time until the event ends, or how long ago it ended (the difference between ‘now’ and the end time of the event) in human-readable format, such as ’1 hour’, ’4 days’, ’15 mins’ etc.The output of this shortcode obviously depends on the time ‘now’, and is best used in conjunction with the [if-ended] and [if-not-ended] conditional shortcodes, which allow you to display something like ‘Ended 3 days ago’, or ‘Ends in 2 hours’.
Possible attributes: precision, offset
[location]
Displays the location of the event. So, for event 2 from feed 1, ‘Glanford Park, Scunthorpe’ would be displayed.
Possible attributes: html, markdown
[maps-link]…[/maps-link]
Anything that you enter between the opening and closing tags of this shortcode (including further shortcodes) will be shown as a link to Google Maps, using the location of the event as a search parameter.
For example, if you were to use the shortcode like this: [maps-link]Map[/maps-link], event 1 from feed 1 would display ‘Map‘.
As mentioned, you can use further shortcodes between the opening and closing tags, so you could use this: [maps-link][location][/maps-link] to display this ‘Whitby, North Yorkshire‘.
Possible attributes: newwindow
[description]
Displays the event description. So, for event 2 from feed 2 ‘Cardboard box conference’ would be displayed.
Possible attributes: html, markdown, limit
[link]…[/link]
Anything that you enter between the opening and closing tags of this shortcode (including further shortcodes) will be shown as a link to the Google Calendar page for the event.For example, to make the event title into a link to the Google Calendar page, you would use this: [link][event-title][/link].
Possible attributes: newwindow
[url]
Outputs the raw URL to the Google Calendar page for the event. Perhaps useful for constructing your own links, e.g: <a href="[url]">More information</a>.
[length]
Displays the length of the event, in human-readable format. So for event 1 from feed 1, ’1 day’ would be displayed.
Possible attributes: precision
[event-id]
Outputs the unique identifier assigned to an event. This will be a string of characters like: n0b9hr7tfjhtoijyar67b4nnok. This is useful in combination with [cal-id] for constructing the URL to the .ics or XML feed for a specific event.
Feed Information Shortcodes
These shortcodes are replaced with the relevant information about the feed from which the event comes.
[feed-title]
Displays the title of the feed from which the event comes. The feed title is specified in the plugin feed settings. So, for feed 2, ‘Boring things’ would be displayed.
[feed-id]
Outputs the ID of the feed from which the event comes. This can be useful for constructing your own feed-specific CSS classes.
For example, you could enter something like this: <p class="feed-[feed-id]">[event-title]</p>. You could then add some CSS to the stylesheet to style this class differently from classes from other feeds, perhaps like:
.feed-1{
background:#FF0000;
}
.feed-2{
background:#00FF00;
}This would display the event title on a red background for events from feed 1, and on a green background for events from feed 2.
[cal-id]
Outputs the calendar ID, which uniquely identifies the calendar. This may be an email address, or a string of characters followed by “@google.com”. In combination with the event-id] shortcode, you can construct links to the .ics feed for a specific event, like this:
<a href="http://www.google.com/calendar/ical/[cal-id]/public/full/[event-id]">ical feed</a>or to the XML feed like this:
<a href="http://www.google.com/calendar/feeds/[cal-id]/public/full/[event-id]">XML feed</a>Conditional Shortcodes
Each of the following shortcodes has a condition that must be met for anything between its opening and closing tag to be displayed. In other words, if its condition is not met, anything inside it will be ignored (including further shortcodes).
[if-all-day]…[/if-all-day]
Condition: The event is an all-day event
Anything between the opening and closing tags of the shortcode will only be displayed if the event is an all-day event. This means that you can display something like ‘All day’ rather than the start / end times of the event. Best used in conjunction with [if-not-all-day] if your feed contains both all-day and ‘normal’ events.
For example, [if-all-day]All day[/if-all-day] would display ‘All day’ for event 1 from feed 1, but wouldn’t display anything for event 2 from feed 1.
[if-not-all-day]…[/if-not-all-day]
Condition: The event is not an all-day event
Anything between the opening and closing tags of the shortcode will only be displayed if the event is not an all-day event. Best used in conjunction with [if-all-day] if your feed contains both all-day and ‘normal’ events.
[if-title]…[/if-title]
Condition: The event has a title
Anything between the opening and closing tags of the shortcode will only be displayed if the event has a title.
[if-description]…[/if-description]
Condition: The event has a description
Anything between the opening and closing tags of the shortcode will only be displayed if the event has a description.
For example, [if-description][description][/if-description] would display ‘Just a check-up’ for event 1 from feed 2, but wouldn’t display anything for event 2 from feed 1.
[if-location]…[/if-location]
Condition: The event has a location
Anything between the opening and closing tags of the shortcode will only be displayed if the event has a location.
For example, [if-location][location][/if-location] would display ‘Birmingham NEC’ for event 2 from feed 2, but wouldn’t display anything for event 1 from feed 2.
[if-tooltip]…[/if-tooltip]
Condition: The plugin is currently generating a calendar grid with tooltips
Anything between the opening and closing tags of the shortcode will only be displayed if the plugin is currently creating a calendar grid with tooltips. This allows you to display different information for tooltips and lists, and generate different CSS classes.
[if-list]…[/if-list]
Condition: The plugin is currently generating an events list
Anything between the opening and closing tags of the shortcode will only be displayed if the plugin is currently creating an events list. This allows you to display different information for tooltips and lists, and generate different CSS classes.
[if-now]…[/if-now]
Condition: The event is taking place now
Anything between the opening and closing tags of the shortcode will only be displayed if the event is taking place now (it is after the start time, but before the end time). This can be useful for highlighting current events.
[if-not-now]…[/if-not-now]
Condition: The event is not taking place now
Anything between the opening and closing tags of the shortcode will only be displayed if the event is not taking place now (it may have not yet started, or already ended).
[if-started]…[/if-started]
Condition: The event has started (even if it has also ended)
Anything between the opening and closing tags of the shortcode will only be displayed if the event has started. This works well with the [start-human] shortcode. For example, you could use something like this: [if-started]Started [start-human] ago[/if-started], which would output something like ‘Started 30 mins ago’.
[if-not-started]…[/if-not-started]
Condition: The event has not started
Anything between the opening and closing tags of the shortcode will only be displayed if the event has not started. Again, this works well with the [start-human] shortcode. For example, you could use something like this: [if-not-started]Starts in [start-human][/if-not-started], which would output something like ‘Starts in 3 days’.
[if-ended]…[/if-ended]
Condition: The event has ended
Anything between the opening and closing tags of the shortcode will only be displayed if the event has ended. This works well with the [end-human] shortcode. For example, you could use something like this: [if-ended]Ended [end-human] ago[/if-ended], which would output something like ‘Ended 2 days ago’.
[if-not-ended]…[/if-not-ended]
Condition: The event has not ended (even if it hasn’t started)
Anything between the opening and closing tags of the shortcode will only be displayed if the event has not ended. Again, this works well with the [end-human] shortcode. For example, you could use something like this: [if-not-ended]Ends in [end-human][/if-not-ended], which would output something like ‘Ends in 4 days’.
[if-first]…[/if-first]
Condition: The event is the first of the day
Anything between the opening and closing tags of the shortcode will only be displayed if the event is the first event of the day.
[if-not-first]…[/if-not-first]
Condition: The event is not the first of the day
Anything between the opening and closing tags of the shortcode will only be displayed if the event is not the first event of the day.
[if-multi-day]…[/if-multi-day]
Condition: The event spans multiple days
Anything between the opening and closing tags of the shortcode will only be displayed if the event spans more than one day (in other words, it doesn’t start and end in the same day).
[if-single-day]…[/if-single-day]
Condition: The event starts and ends on the same day
Anything between the opening and closing tags of the shortcode will only be displayed if the event starts and ends on the same day (it doesn’t span multiple days).
Attributes
Some of the above shortcodes have further attributes that you can use to enable / disable / specify certain things. An explanation of these attributes is below:
html
Description: Whether or not to parse HTML entered in the relevant field Valid values: true or false If omitted: HTML will not be parsed Example: [event-title html="true"]
If set to true, any HTML you have entered in the relevant field will be properly parsed, rather than displayed as plain text (the field content will passed through the wp_kses_post function to reduce the risk of cross-site scripting attacks if your Google Calendar account was to be compromised).
It’s probably not a good idea to use this at the same time as the limit attribute, as this could result in wonky HTML.
markdown
Description: Whether or not to parse Markdown entered in the relevant field Valid values: true or false If omitted: Markdown will not be parsed Example: [description markdown="true"]
If set to true, any Markdown in the relevant field will be properly parsed, rather than displayed as plain text. You must have PHP Markdown installed for this to work.
limit
Description: The word limit for the field Valid values: A positive integer If omitted: No word limit will be applied
This will trim the relevant field to the specified number of words.
format
Description: The date / time format to use Valid values: A PHP date format string If omitted: The date / time information will not be displayed! Example: [start-custom format="F j, Y - g:i a"]
The date / time format to use for the [start-custom] and [end-custom] fields.
newwindow
Description: Whether or not the link should open in a new browser window / tab Valid values: true or false If omitted: The link won’t open in a new window / tab Example: [maps-link newwindow="true"]
If set to true, the link will open in a new browser window or tab when clicked.
precision
Description: The precision to use for time differences in human-readable format Valid values: A positive integer If omitted: Defaults to 1 Example: [length precision="2"]
Defines how precise time differences expressed in human-readable format should be. For example, a precision of 1 might display ’1 day’, whereas a precision of 3 might display ’1 day, 1 hour, 24 minutes’.
offset
Description: An offset (in seconds) to apply to a date / time before it is displayed Valid values: An integer (positive or negative) If omitted: No offset is applied Example: [end-date offset="-1"]
Adds the specified value in seconds to the date / time before it is formatted and displayed. This is most useful for forcing the end date of an all-day event to display as expected (see above example).
autolink
Description: Whether or not to automatically make URLs entered into the description of an event into “clickable” links Valid values: true or false If omitted: URLs are automatically made into links Example: [description autolink="false"]
If set to true, URLs in the description will be automatically made into links. URLs will not be automatically made into links if the html or markdown attributes are used, regardless of this option.
Examples
Here’s some examples of how the above shortcodes and attributes can go together, along with some HTML, to create all sorts of different layouts.
The Default
Event display builder input:
<div class="gce-list-event gce-tooltip-event">[event-title]</div>
<div><span>Starts:</span> [start-time]</div>
<div><span>Ends:</span> [end-date] - [end-time]</div>
[if-location]<div><span>Location:</span> [location]</div>[/if-location]
[if-description]<div><span>Description:</span> [description]</div>[/if-description]
<div>[link newwindow="true"]More details...[/link]</div>Example output (tooltips and list items):
This is a simple layout that is similar to the ‘old’ default. Notice that it doesn’t output the location or description if they’re empty. The newwindow attribute is used in the [link]shortcode, so that the link opens in a new window / tab. A possible drawback to this layout is that it doesn’t handle all-day events particularly well, just displaying ’12:00 am’ for the start / end times, which could cause confusion.
Handling All-Day Events
Event display builder input:
<p class="gce-list-event gce-tooltip-event">[event-title]</p>
[if-all-day]<p><span>Time:</span> All day</p>[/if-all-day]
[if-not-all-day]
<p><span>Starts:</span> [start-time]</p>
<p><span>Ends:</span> [end-date] - [end-time]</p>
[/if-not-all-day]
[if-location]<p><span>Location:</span> [location]</p>[/if-location]
[if-description]<p><span>Description:</span> [description]</p>[/if-description]
<p>[link newwindow="true"]More details...[/link]</p>Example output (tooltips and list items):
Notice that events that last all day are now handled differently than ‘normal’ events.
Different Feeds
Event display builder input:
<div class="feed-[feed-id]">
<p>[link newwindow="true"][event-title][/link] - ([feed-title])</p>
<p>From [start-custom format="g:i a"] on [start-custom format="jS F"] until [end-custom format="g:i a"] on [end-custom format="jS F"]</p>
</div>Example output (tooltips and list items):
In this example I have used the feed information shortcodes to display events from different feeds in different ways. I have constructed a feed-specific CSS class and used the following CSSto style the events:
.feed-1{
background:#CCFFCC;
}
.feed-2{
background:#FFCC99;
}
.feed-1 p:first-child,
.feed-2 p:first-child{
font-weight:bold;
}Also notice the use of the [start-custom] and [end-custom] shortcodes, and the format attribute. I’ve also made the event title into a link to the Google Calendar page for the event, by placing the [event-title] shortcode inside the [link]shortcode.
Saving Space
Event display builder input:
[if-all-day]<p><strong>[link][event-title][/link]</strong> - All day</p>[/if-all-day]
[if-not-all-day]</p><strong>[link][event-title][/link]</strong> - [start-time]</p>[/if-not-all-day]Example output (tooltips and list items):
If you’re short of space, or have large numbers of events, and only want to display the bare minimum of event information, you can do so with something like this. This example still takes advantage of the ability to differentiate between all-day and ‘normal’ events. I’ll add more examples later!
Further Notes
I realise that the event display builder appears quite complex at first glance, so I hope the above information is helpful. If you’re not sure about anything, please ask in the commentsbelow. Any feedback regarding the following would be helpful for future developments to this feature:
- Bugs, or anything that doesn’t seem to work as described
- Ideas for more shortcodes / attributes that would be useful to you
- Is the documentation (this page!) good enough to understand how things work?
Also, if you come up with any really snazzy layouts, let me know!
Thank you Ross for this awesome plugin! Just what I needed. I am looking to replace the HTML calendar this page http://worlddancenc.com/weekly-schedule with your plugin and keep the styling on that page. How do I get to group the events by day? Is there an easier method than creating a separate feed for each day of the week and listing a shortcode for each one?
Thank you in advance!
I may have half-answered my own question using the
[list-grouped]function. If there is any do-hickeying I’ll need to do within the source code just let me know where. I’m eager to learn!Hi Brandon,
Yes, the grouped list will group the events by day.
To replicate the output on that page, you’d probably need to following settings:
Retrieve events from: Start of current week
Retrieve events until: Start of current week (with an offset of 6048000)
604800 is the number of seconds in a week.
Let me know if you have further questions.
Ross.
Thanks for this great plugin. I’m pulling events from several Meetup calendar feeds into a Google calendar, and then using this plugin to display the Google calendar events (which include all the Meetup feeds plus some events entered directly in the Google calendar).
For the Meetup events, I’d like the event title in the widget to link directly to the Meetup page rather than taking an intermediate stop on the Google calendar page. Currently the Meetup event URL is stored in the Description field, along with other information. But it’s stored in a consistent way, which makes me think it would be possible to pull out this URL as a variable if I had the skills (which I obviously don’t…). Sample event here:
https://www.google.com/calendar/b/0/render?eid=X2NscjZhcmprYnNxajZkMWg3NG9qMmNpMGRsaW1hdDNsZTBuNjZycmQgbjM3N3R2ZDlzamQ3ODQwNDRkamJmdGExdTNlcXZjMjJAaQ&ctz&pli=1&sf=true&output=xml
The Meetup URL I want is always the last line in the description field, formatted “Details: http://www.meetup.com/ASAN-Sacramento/events/53419112/”
Do you know how I might pull out this URL as a variable to use in the Event Display Builder, so that I could link the event title for Meetup events directly to the Meetup page?
Hi Sarah,
Yes, this can be done, but it requires adding to the code a little.
I’ve added an amended version of the
google-calendar-events/inc/gce-event.phpfile here.Basically, it adds two new shortcodes to the event display builder:
[details-link]and[desc-no-link].The
[details-link]shortcode will output just the URL after the word “Details:”, so could be used as follows:The
[desc-no-link]shortcode will output the entire description, except for the “Details: http://…” bit, so could be used instead of the existing[description]shortcode.All this assumes that you always use the exact format you describe (i.e.: “Details”, colon, one space, URL).
You’ll need to replace your existing
google-calendar-events/inc/gce-event.phpfile with the one linked above.It seems to work ok in my basic tests, but let me know if you have any problems.
Ross.
Wow — thanks for the quick response! Works perfectly.
Awesome plugin. The best one I have seen yet. I would like to add a styled button that matches my site that links to the embedded Google calendar page on my site, not to the Google site.
Any thoughts or help would be greatly appreciated!
Hi Doug,
Where would you want the button to appear? Before / after a widget, in the tooltip etc?
Ross.
After the widget. Right now I can add a button at the end using the event display builder, but the problem is that it appears after every event, not just one link at the bottom of the widget.
I get the [google-calendar-events] put into any page. Works fine.
But when I put in the custom stuff like below in a page:
[event-title]
Starts: [start-time]
the short-codes do not get expanded.
I feel I am missing something real basic.
Do these go into a separate file the widget uses?
Or do I need to add something else?
Sorry for my ignorance,
Hi Frank,
The
[google-calendar-events]shortcode is the only shortcode that goes directly in the page itself. The other shortcodes you mention should be placed in the event display builder field in the feed settings (under “Display Options”, select “Event Display Builder” from the drop-down box).This is a little confusing, I agree. I couldn’t think of a better name for the event display builder shortcodes that wouldn’t cause more confusion!
Let me know if you have further questions.
Ross.
I was wondering if it was possible to have some conditional logic set up so that you could display (or not) events based on what was entered into the event title or description (or any other Google Calendar field). For example, any events that contained the word “tentative” could be hidden or any events that had “please bring a dish to share” could be made bold to alert viewers to a special need for an event.
I don’t think this is doable with the current shortcodes, but it seems that you’re interested in feedback and other ideas.
What do you think?
Hi Damon,
This is certainly a good idea, but isn’t really a job for the shortcodes in the event display builder. They’re for customising the information displayed, not for filtering events.
I have a couple of ideas of how to make this sort of thing possible for a future release, but you’re right, it’s not easily doable in the current version.
For the time-being, I can think of a couple of possible workarounds for your specific examples, that may or may not be useful:
htmlparameter, you could enter some HTML into your event titles / descriptions, in order to make events with important information stand out more (perhaps in combination with some custom CSS)Thanks for your feedback!
Ross.
Hey Ross, by now you know this plugin is superb. Absolutely love it. Is there a way to route a feed to a separate CSS file? I want to have one BG color for events for one feed and a different BG color for the other in the Page Grid View. Going to keep looking through people’s comments to see if someone has already done that as well. Thanks!
Hi Will,
The plugin adds feed specific CSS classes to the grid cells, so you can style them something like this:
Ross.
Works like a charm. You’re the best!
Hi Russ,
Thanks for creating and sharing a great wordpress plug-in!
I’m trying to use your plug-in to grab the next google calendar event and add it to the tagline/description of my wordpress blog.
I used the event builder to simplify it to only the information I’m after but I can’t seem to figure out how to put the event title/date and the time all on a single line. Any help would be much appreciated!
Thanks,
Jeff
Ross*
Sorry I misspelled your name.
Hi Jeff,
No worries!
To display the event title, date and time all on one line, you’re probably better off using the normal list, rather than the grouped list. To do this with the widget, set the “Display events as…” option to “List”, or if you’re using the shortcode, set the
typeparameter tolist.Next, disable the date title display, either by disabling the “Display title on tooltip / list item?…” option in the widget settings, or by omitting the
titleparameter from the shortcode.Then, in the event display builder, use something like the following:
<div>[start-date] - [start-time] - [event-title]</div>As all the event display builder shortcodes are within a single
<div>, the details will be output on the same line.I notice that you’re using the
[google-calendar-events]shortcode within a text widget, rather than using the “proper” Google Calendar Events widget. Is there any particular reason for this?Let me know if you have any questions.
Ross.
Thanks for your help the changes you told me to make work great!
I couldn’t tell you why I added the calendar to the sidebar using a short code in a text field rather than using the widget. Maybe because this was the way I added the grid style calendar to the calendar page so I was already familiar. This is the first wordpress page I’ve worked with so I’m sort of learning as I go. I’ve since switched to using the widget in the sidebar instead.
Thanks again for your help and plugin,
Jeff
Hi Ross,
I greatly like this plug-in. Please pardon my lack of knowledge with this plugin though, but how do I allow people to scroll ahead to other months?
Thanks.
Gene
Hi Gene,
In the Google Calendar Events shortcode on your page, what do you have the
typeparameter set to? To enable month navigation, you’ll need to set it toajax, like this:Also, the month navigation links won’t appear if the plugin hasn’t retrieved events in months other than the current month. Perhaps check that:
If you’re still having problems, let me know.
Ross.
Thanks Ross. That is what I was missing. It is working now.
Ross,
Where do the shortcodes go? If I place your widget in a thesis sidebar, I don’t see any opportunity to customize the display of the calendar events. Am I supposed to edit a file?
I want to show events for the next 7 days in the sidebar on the main page, and events for the current month on another page…
Tom
I’m very new to WordPress. I’m trying to make the dates in the widget area that have events be in a different font color besides black. Does anyone know how I can go about doing this?
Hi Lauren,
You’d need to add a little custom CSS to do this. To make the background colour of dates with events red, for example, you’d use the following:
Ross.
I second Tom’s question from 4/17. I have looked all over your site and through the plugin settings on my site. How do I edit the Event Display Builder? You refer to it as a text field. Where is this text field? I don’t have anything in my plugin settings and I don’t see any files with “builder” in the name. Where do I use these codes?
Apart from this confusion about the builder on my part, the plugin is great!
-Mike
Mike,
Ross.
Hey Ross,
I emailed you earlier with a question and I have not tested your answer yet but I had another question which is more immediate. I have multiple peoples schedules in different feeds. I keep running into the issue when I use the [google-calendar-events] it is combining all of my feeds into one calendar, and I need 5 different calendars. Any help would be greatly appreciated
Cullan,
If you want separate calendars, you’ll need to use separate shortcodes, like this:
Ross.
Ross you are the man! that worked perfectly
Sorry for the delayed kudos, but its been busy.
My client came to me and she needs the days that are visible tweaked. Example, today her employee was open to be scheduled numerous times threw out the day. The current settings only show the next days times of open scheduling opportunities. Is there a way to change this in the offsets? or is it something I need to tweak in the javascript? it seems like an offset issue to me, but what do you think my good man?
Thank you for your time and efforts
Hi Cullan,
What do you have the “Retrieve events from” option set to? If you set it to “00:00 today”, events from the current day should be displayed.
Ross.
Please excuse my ignorance…. I have figured it out
I see that you can change the look and feel by each feed. Is there a way to change the look and feel consistently for all feeds in one place instead of having to go to each feed and changing the code in the display field?
thanks,
paul
Paul,
No, not currently. Although it’s something I have on my list to look into for a future release.
Ross.
Hi Ross,
Great Plugin, thanks! I’m having trouble getting the events to wrap in my widget area. I have the widget in one of my sidebars, and the events are going off the page instead of wrapping. Is there an email I can send you a link to my site so you can take a look at it?
Again, great plugin, thanks!
Hi…I actually found out the answer, I had to adjust the style for this item:
.gce-feed-1
thanks again!!!
Is there any way to disable the “events on” heading above each event on a list using the shortcode? Or is that option available with just the widget?
Hi Mike,
There’s a
titleparameter for the shortcode. If you omit it, the “Events on” text won’t be displayed.Ross.
Great plugin! Super simple to setup. My only question:
How do I switch the display order of the events so its Descending instead of the default Ascending order?
Thanks!
Hi Patrick,
If you’re using the widget, there’s a “Sort order” option in the widget settings (Appearance > Widgets).
Or, if you’re using the shortcode, set the
orderparameter todesc, like this:Ross.
This plugin does almost exactly what I need, but is there any way in “list” mode to display the day of the week (Monday, Tuesday, etc.) along with the date? I want each list item to begin with, for example, “Tuesday, 25 July 2012.” Does the Google api provide this? Is there some other function that can extrapolate the day of the week?
Sorry about the ignorant question. I just figured it out. In the “date format” field, I entered “l, F d, y.”
Thanks so much for your fantastic plugin, with so many customization options and your ongoing maintenance and support. I’m using the widget list function for a client project, and have a few questions about special cases. I would appreciate any advice you could give.
I’m using the widget list function for a client project, and haven’t found a way to specify a condition where, if an event is multi-day, it only displays once in the list, in the format:
‘Thu. May 17 – Mon. May 21′
I wrote this in Display Builder:
[if-multi-day][start-date]-[end-date][/if-multi-day]
so it does appear this way, but the event repeats four times, one for each day. Maybe I’m overlooking something, but I would be glad for any help resolving this issue.
Also, if possible, I would like to make a condition where the time could display as either ’6:30pm’ or ’8pm’, depending on whether the time is a plain hour or has extra minutes. It’s just cosmetic, but it would help to clean the view.
I know this is a lot to ask, so I’m happy to work with the system. I’m just wondering if these ideas are possible. Thank you!
- Jessica
Hi Jessica,
In the plugin settings for the feed, there’s an option labelled “Show multiple day events on each day?”. Disabling this option should cause multi-day events to only be displayed once.
Only displaying minutes if required would be more complicated though, I’m afraid. It would require some hacking about with the code.
Ross.
Oh goodness, thanks for pointing this out, problem solved. Sorry to overlook it.
I can mash PHP a little but not enough to serious hack or write my own, so I’ll leave it with :00 for now, unless you happen to have a fast idea (no pressure).
I appreciate your response, and your tool. People like you are some reasons I can make the Internet.
Hi,
Many thanks for your great plugin.
I was wondering if there is a wat to remove the date above my events
as you can see at http://www.smaakbus.nl/agenda-2/
I really want to remove the bold date above my events
Thanks in advance.
Kind regards,
Tijmen Schulte
NL
Hi Tijmen,
Are you using the
titleparameter in the[google-calendar-events]shortcode? If you remove thetitleparameter, the date should disappear.Ross.