You must be logged in to post Login Register


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Add Calendar to page without shortcode

UserPost

2:42 pm
February 12, 2010


r3v3rb

New Member

posts 2

Hi,

I have a custom wordpress home page which I would like to add the large calendar view to. However if I try to use the shortcode in the page code – it doesn't get interpreted correctly and just shows [[EventsCalenderLarge]] in the area it is meant to show up in.

What is the correct function to call to bring the calendar into a page without using the shortcodes ?

Regards,

mm

11:30 pm
February 13, 2010


rosko

Australia

Member

posts 60

<?php

        $calendar = new EC_Calendar();
        $calendar->displayLarge(date('Y'), date('m'));
?>

3:27 pm
February 15, 2010


r3v3rb

New Member

posts 2

Thanks rosko,

I have actually ended up using a different calendar system but I will look to use this in a future site – so it's good to have the information at hand :)

Regards,

r


About the WP Events Calendar forum

Most Users Ever Online: 50

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 4
Forums: 9
Topics: 519
Posts: 1445

Membership:

There are 873 Members

There are 5 Admins

Top Posters:

rosko – 60
Stewart – 36
bitkahuna – 20
wombat1 – 14
vickilh2 – 11
cmldesigns – 11

Recent New Members: sparkie, zell1987, Jane, melanie, aggchic, jonoblades

Administrators: laplix (170 Posts), Luke (48 Posts), heirem (13 Posts), Brad (10 Posts), coe (0 Posts)