jQuery undefined function in wordpress plugin which creates a fullCalendar

98 Views Asked by At

I am creating a plugin which uses the jQuery fullCalender.

The code appears to all be working fine however when the page fully loads and my shortcode populates its appropriate html and javascript I get the following error:

enter image description here

So from this I can gather that jQuery resolves ok - but somehow the calendar does not? Can somebody please help me! It may be because I am using OptimizePress which might be including its own copy of jQuery - and my plugin is also including a copy of jQuery and the calendar. But I dont know how to make sure i reference my own jQuery or make this work.

Thanks!

1

There are 1 best solutions below

0
On

The answer was to use wp_register_script and wp_enqueue_script to add the script to my generated document