Hi, I’ve got the same issue with a site I’m working on for someone.
I’m not a huge JQuery buff, but looking at the source code of the page genereated, it looks like things are loaded in the wrong order, and hence getting a JS error of jQuery not defined.
relevant source code:
<div class="sidebar">
<h1>Testimonials</h1><div id="tcycle"><div class="testimonial-widget"><h5>Hate it.</h5><div class="content">Hate it... ?</div><div class="clear"></div><div class="client"><span class="name">George</span><br/></div></div><div class="testimonial-widget"><h5>Useful</h5><div class="content">Useful.</div><div class="clear"></div><div class="client"><span class="name">Bob</span><br/></div></div><div class="testimonial-widget"><h5>Great</h5><div class="content">Great</div><div class="clear"></div><div class="client"><span class="name">Bob</span><br/></div></div></div><div class="clear"></div> </div>
</div>
<script type="text/javascript">jQuery(document).ready(function($) { $("#tcycle").cycle({ fx: "fade", speed: 1500, timeout: 8000, pause: 1}); });</script><link rel='stylesheet' id='gctwidgetstyles-css' href='https://localhost/livingchoice/wp-content/plugins/gc-testimonials/assets/css/gctwidget.css?ver=1.0' type='text/css' media='all' />
<script type='text/javascript' src='https://localhost/livingchoice/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
<script type='text/javascript' src='https://localhost/livingchoice/wp-content/plugins/gc-testimonials/assets/js/jquery.cycle.all.js?ver=3.4.2'></script>
I presume this is due to WordPress just using array_pop() to run the actions added to wp_footer, rather than iterating through the array in order, so hopefully shouldn’t be a difficult fix to reorder how you’re adding the code to the footer call in the plugin?
Thanks for the otherwise great plugin by the way! ??
– Chris