Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    The PHP function is ‘get_testimonial_rotator’ and has an array of $args.

    Something like this should work:
    <?php echo get_testimonial_rotator( array('id' => 123, 'speed' => 3000 ) ); ?>

    If you look in testimonial-rotator.php for the function you can see all the available arguments that can be changed.

    Hope this helps,
    Hal

    Hi Hal, Thanks creating and sharing this plug-in.

    I’ve used it a few times now and it’s been great. Today I’m adding the rotator to a front-page.php template. With the code below.

    function source_front_page_reviews() {
    
    	$review_rotator = do_shortcode('[testimonial_rotator id=27]');
    
    	echo '<section class="review_wap-home"><div class="wrap">' . $review_rotator . '</div></section>';
    }
    add_action( 'source_reviews_section', 'source_front_page_reviews' );

    The rotator shows as expected but the rotation doesn’t work, automatically or via click. I’ve tried adding the rotator in various ways for example.

    echo do_shortcode('[testimonial_rotator id=27]');

    But that still results in non moving rotator. Can you assist?

    Just to add to this, on further inspection It seems as though there are two slides but the both are the same i.e. slide-1 and another slide-1 rather than slide-1 and slide-2.

    I’m having the same issue. Did you find a fix for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What is the code to use T.R. within a template?’ is closed to new replies.