Nice one except a jQuery error. It is solved.
-
Thanks a lot for nice plugin.
Anyway, there was an error for me ‘ReferenceError: jQuery is not defined’. It could be based on my script structure. To overcome the issue, I just modified a line in file : archive-calendar.php @ function archivesCalendar_jquery_plugin() added dependency array to wp_register_script statement. The complete statement is below.
function archivesCalendar_jquery_plugin() { wp_register_script( 'archivesCW', plugins_url(). '/archives-calendar-widget/jquery.archivesCW.min.js', array('jquery') ); wp_enqueue_script( 'archivesCW'); }
Everything fine.
also I could be able to modify this plugin to work with different post types using different url pattern.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nice one except a jQuery error. It is solved.’ is closed to new replies.