Title: Place into PHP
Last modified: August 21, 2016

---

# Place into PHP

 *  Resolved [Punumbra](https://wordpress.org/support/users/punumbra/)
 * (@punumbra)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/place-into-php/)
 * 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/](http://wordpress.org/extend/plugins/testimonial-rotator/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940583)
 * 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.
 *  [Ansy Haden](https://wordpress.org/support/users/ansy-haden/)
 * (@ansy-haden)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940837)
 * Hey Hal Thanks for Plugin, but above code not working.
 * Can you please provide another code?
 * Thanks
 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940841)
 * [@ansy](https://wordpress.org/support/users/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?
 *  [Ansy Haden](https://wordpress.org/support/users/ansy-haden/)
 * (@ansy-haden)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940842)
 * 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’)); } ?>
 *  [Ansy Haden](https://wordpress.org/support/users/ansy-haden/)
 * (@ansy-haden)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940843)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/testimonial-rotator_b07a88.svg)
 * [Testimonial Rotator](https://wordpress.org/plugins/testimonial-rotator/)
 * [Support Threads](https://wordpress.org/support/plugin/testimonial-rotator/)
 * [Active Topics](https://wordpress.org/support/plugin/testimonial-rotator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/testimonial-rotator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/testimonial-rotator/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Ansy Haden](https://wordpress.org/support/users/ansy-haden/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/place-into-php/#post-3940843)
 * Status: resolved