WP Calendar is an easy-to-use calendar plug-in to manage all your events with many options and a flexible usage.
This plugin requires PHP 5!
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.
All calendar entries are created using a class foreach assigned category (e.g. category-3 for category 3). Override the the default colors using:
div .fc-event.category-3,
div .fc-event.category-3 a {
background-color: red;
border-color: red;
}
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.
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.
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.
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.
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.
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 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);
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.
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.
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.
Requires: 3.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-5-25
Downloads: 52,463
0 of 2 support threads in the last three weeks have been resolved.
Got something to say? Need help?