WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
Testimonials do not rotate? (3 posts)

  1. Brett2000
    Member
    Posted 1 year ago #

    Hi,

    Using latest version, I set cycle on, and have 4 testimonials loaded, all in the same category. When I load the sidebar widget, it always displays only the number of testimonials I request, it does not pull more, and no cycle happens??

    Any ideas what is causing that? When I View->Source, I see only the number of testimonials I say to show in the code, so, how will it cycle?

    Thanks,
    -Brett

    http://wordpress.org/extend/plugins/gc-testimonials/

  2. devnz
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Brett,

    Its hard to tell what might be causing this without being able to see the site myself. Can you send me an example at all?

  3. Chris_J_W
    Member
    Posted 1 year ago #

    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='http://localhost/livingchoice/wp-content/plugins/gc-testimonials/assets/css/gctwidget.css?ver=1.0' type='text/css' media='all' />
    <script type='text/javascript' src='http://localhost/livingchoice/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
    <script type='text/javascript' src='http://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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.