Title: PHP code for inserting?
Last modified: August 20, 2016

---

# PHP code for inserting?

 *  Resolved [zonkD](https://wordpress.org/support/users/zonkd/)
 * (@zonkd)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-inserting/)
 * The running sample looked great from the parallax support topic.
 * I’m trying to install this in a php template for the index.
 * I tried the similar code from parallax with a rename but it didn’t work.
 * <?php if ( function_exists( ‘get_wp_parallax_content_slider’ ) ) { get_wp_parallax_content_slider();}?
   >
 * Can it be called using php?
 * [http://wordpress.org/extend/plugins/wp-fading-content-slider/](http://wordpress.org/extend/plugins/wp-fading-content-slider/)

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

 *  Plugin Author [wp-maverick](https://wordpress.org/support/users/wp-maverick/)
 * (@wp-maverick)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-inserting/#post-3352876)
 * Hello zonkD,
    PHP code is:
 *     ```
       include (ABSPATH . '/wp-content/plugins/wp-fading-content-slider/content-slider.php');
       ```
   
 * In next version, I’ve entirely refactored the code. You’ll be able to do that:
 *     ```
       if (class_exists('WpFadingContentSlider')) {
           include (ABSPATH . '/wp-content/plugins/wp-fading-content-slider/content-slider.php');
       }
       ```
   
 *  Plugin Author [wp-maverick](https://wordpress.org/support/users/wp-maverick/)
 * (@wp-maverick)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-code-for-inserting/#post-3352902)
 * The PHP code since v0.2.1:
 *     ```
       if ( function_exists( 'get_wp_fading_content_slider' ) ) {
           get_wp_fading_content_slider();
       }
       ```
   

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

The topic ‘PHP code for inserting?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fading-content-slider_2c2c2c.svg)
 * [WP Fading Content Slider](https://wordpress.org/plugins/wp-fading-content-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fading-content-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fading-content-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fading-content-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fading-content-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fading-content-slider/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wp-maverick](https://wordpress.org/support/users/wp-maverick/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/php-code-for-inserting/#post-3352902)
 * Status: resolved