Download, Upgrading, Installation:
Install
- Unzip the
cgm_calendar.zip file.
- Upload the the
cgm_calendar folder (not just the files in it!) to your wp-contents/plugins folder. If you're using FTP, use 'binary' mode.
Activate
- In your WordPress administration, go to the Plugins page
- Activate the CGM Calendar plugin and a subpage for CGM Calendar will appear
in your Settings menu and also as its own menu.
Display
There are three ways to show the calendar on your site.
- Go to Settings -> CGM Calendar and change the settings to what to you. Set the page name to the url you want to display the calendar and visit http://www.yoursiteurl.com/pagename and it will appear. No page or post creation required
- Add the short code [cgm-event-calendar] to your page or post content you wish to display the calendar
- Use the php function call to display the calendar where you wish.
To display upcoming events
- Go to Settings -> CGM Calendar and set the Calendar URL to the full url where the calendar resides. Default would be http://www.yoururl.com/calendar
- Modify the List Format setting if desired. Note that you will still need to wrap any list in a ul/ol when called.
- Use the function echo cgm_list_upcoming_events(array('num_events' => 5, 'tag_id' => '1,2')); and change the num_events to how many you want to show and the tag_id list to the tagged events, or remove it to show all.
- You may also use the short code [cgm-upcoming-events num_events=10 tag_id=1,2] to display the list.
If you wish, you can override the default css and print view template by copying the files, calendar.css and print_view.php to the base of your template directory.
Notice
Make sure your time zone is set correctly under Settings -> General or the calendar will be effected
If you find any bugs or have any ideas, please mail me. ryan at creativegraymatter dot com