phthornton
02-07-2010, 08:08 PM
I have installed epc into my wordpress site, very easy install and all works great.
However, what i want to be able to do is display a mini calendar on a number of different pages and for the calendar to only show events relevant to that page.
I am currently displaying the calendar in my sidebar using the following:
if (is_page('88') ) {
require("calendar/calendar.php");
} elseif ( is_page('91') ) {
require("calendar/calendar.php");
............
For example:
Area 1 page will show events that are categorised as area 1
Area 2 page will show events that are categorised as area 2 and so on.
on the main / index page I am displaying a list of events using:
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
$listWeeks = "52";
$listEvents = "8";
$epcListMouseover = "1";
require ("calendar/calendar.php");
?>
As I have said these all work well but I do need to be able to pull specific groups of events into any particular calendar.
Having a single administration calendar isn't a problem.
Thanks in advance.
However, what i want to be able to do is display a mini calendar on a number of different pages and for the calendar to only show events relevant to that page.
I am currently displaying the calendar in my sidebar using the following:
if (is_page('88') ) {
require("calendar/calendar.php");
} elseif ( is_page('91') ) {
require("calendar/calendar.php");
............
For example:
Area 1 page will show events that are categorised as area 1
Area 2 page will show events that are categorised as area 2 and so on.
on the main / index page I am displaying a list of events using:
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
$listWeeks = "52";
$listEvents = "8";
$epcListMouseover = "1";
require ("calendar/calendar.php");
?>
As I have said these all work well but I do need to be able to pull specific groups of events into any particular calendar.
Having a single administration calendar isn't a problem.
Thanks in advance.