WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Calendar

WP Calendar is an easy-to-use calendar plug-in to manage all your events with many options and a flexible usage.

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION...

This plugin requires PHP 5!

How do I integrate events in my blog

The easiest way is to use the widgets. If you want to use a graphical calendar you have to use the tag {event_calendar}. There are many other Tags and PHP functions (theme development) you can use for display information about events in your blog. Please refer to the plug-ins options page, which discribes all of it.

I want to customize the style of the calendar

You can find the Stylesheet fullcalendar.css in the plugin directory, which is loaded by default. Just copy this file in your theme's directory (not in a subdirectory of it). It will be loaded instead of the plugin's stylesheet.

How can i use custom colors in my graphical calendar

All calendar entries are created using a class foreach assigned category (e.g. category-3 for category 3). Override the the default colors using:

.fc-event.category-3,
.fc-event.category-3 div {
    background-color: #c0c0c0 !important;
    border-color: red !important;
}

When i click on an event in the graphical calendar nothing happens

Make sure you set up the page for the single event view. If this is not set up, nothing will happen when clicking on an event.

How do I display a single event

You can use any event details of one (or more) events in any of your posts and/or pages. All you have to do is to put the designated tags (e.g. {event_subject}) in your post's or page's content. To determine the event you can eighter pass the ID by URL using the parameter event (e.g. http://www.yourdomain.com/mypage/?event=238) or you define the ID(s) static in your content by using the tag {event_id; id=x}. Using the second method let you display more than one event, since you can use the tag {event_id} every time you wish to load another event.

How do I display a list of events

Normally you show a list of events by including the function fse_print_events or fse_print_events_list in your theme. Please refer to the usage documentation in the calendar options for all the possible parameters, which can be used to control the output.

I don't want an event to be printed out, but i need its data for further use

You should not read directly from the database. Instead use the function fse_get_event and pass an integer event id. If the event is not found, the function returns false. Otherwise it returns an event object. Use the function print_r to get an overview of all the attributes.

I use the function `fse_get_event` but the content isn't filtered and has no line breaks

When you access the attribute description all you get is the raw content. Use the method getDescription of your event object to get a filtered content.

How do I get formatted dates when using the function `fse_get_event`

You can eighter use the methods getStart and getEnd or you can use the php's date function passing the attributes tsfrom and tsto. The first method uses the format defined in the calendar object, but you can also pass your own date format as an optional parameter.

The methods `getStart` any `getEnd` always return a date AND time

The methods getStart and getEnd accept two parameters. With the first one you can pass a date format. If it is not supplied, the standard format from the options will be used. But there is also a second parameter, which accept one of the following integer values: 1=date+time, 2=date only, 3=time only. If you just want to have the time returned, but using the standard output format, call the function as follows: echo $evt->getStart('', 3);

Can I refer to other events in an event's description

Yes you can. The description of the content is filtered by the content filter the_content. You can use the same tags as for posts and pages (e.g. {event_subject}). You must pass the ID of this refered event by the tag {event_id; id=x} before using any other tags.

No end date is printed out

Check your setting. You can predefine, if you want an end date always to be displayed, or only if it differs from the start date. You can also pass the parameter alwaysshowenddate when using tags or functions. Please refer to the usage documentation in the calendar options.

Hide Widget when there are no events to display

Please check this forum post for a nice solution.

Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-7
Downloads: 102,662

Ratings

3 stars
3.8 out of 5 stars

Support

1 of 9 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
50,2,1 100,1,1 100,1,1 100,1,1
0,2,0
50,2,1
100,1,1 100,1,1 50,2,1 100,2,2 100,2,2 100,1,1
100,2,2 0,2,0 100,2,2 0,1,0 25,4,1 100,1,1 33,3,1 100,2,2
100,1,1 0,1,0 100,2,2 67,3,2 100,2,2 100,1,1 100,2,2 0,1,0
0,1,0
100,1,1 0,1,0
0,1,0
100,2,2 50,2,1 100,2,2 67,3,2 0,1,0 67,3,2 100,1,1
50,4,2
100,7,7
100,1,1
0,1,0
50,6,3
40,10,4 60,5,3
100,1,1
33,3,1
0,3,0 100,2,2 67,3,2
57,7,4
100,1,1
50,2,1
0,1,0
100,1,1
100,1,1
67,3,2