Support » Plugin: Testimonial Rotator » Place into PHP

  • Resolved Punumbra

    (@punumbra)


    Hey man, just curious as to how to put this into the PHP main area, i added function to use shortcodes in the main php files buttt it doesn’t seem to rotate when i use the shortcode, so i was wondering what the php is to include it in a section of my website as all i can see are shortcodes

    Thank you for your time

    ~Matt

    http://wordpress.org/extend/plugins/testimonial-rotator/

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

    (@halgatewood)

    Try something like this, make sure to change the id 123 to the id of your rotator.

    <?php if(function_exists('testimonial_rotator')) { echo testimonial_rotator( array('id' => 123)); } ?>

    If it doesn’t work add a link to your site where I can see what’s going on.

    Hey Hal Thanks for Plugin, but above code not working.

    Can you please provide another code?

    Thanks

    Plugin Author Hal Gatewood

    (@halgatewood)

    @ansy Haden Are you getting anything? An error message? Do you have a link to where this is happening?

    Can you post exactly the PHP code you used?

    Hi Hal,
    Thanks for your reply.
    I used this plugin in Raspberryketonecart.com just above the footer in USER TESTIMONIAL div and following php code that I have inserted in my page.

    <?php if(function_exists(‘testimonial_rotator’)) { echo testimonial_rotator( array(‘id’ => ‘home-page’)); } ?>

    OMG …. I got it .. sorry I forget to select Testimonial Options from screen option .. now it working fine ..
    🙂

    Thanks Hal … !!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Place into PHP’ is closed to new replies.