Title: Insert in the PHP code?
Last modified: August 20, 2016

---

# Insert in the PHP code?

 *  [Tuliocpa](https://wordpress.org/support/users/tuliocpa/)
 * (@tuliocpa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/)
 * Somebody can help me? How can I insert the plugin in my PHP code?
 * [http://wordpress.org/extend/plugins/nextend-smart-slider-lite/](http://wordpress.org/extend/plugins/nextend-smart-slider-lite/)

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

 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584696)
 * Just use Smart Slider shortcode with this: [http://codex.wordpress.org/Function_Reference/do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
 *  [manninmedia](https://wordpress.org/support/users/manninmedia/)
 * (@manninmedia)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584713)
 * Hi, i’m also having the same problem I have tried using the do_shortcode php 
   tag.
 * However it gives me an error??
 * **Warning: array_shift() expects parameter 1 to be array, null given in /home/
   manninte/public_html/wp-content/plugins/nextend-smart-slider-lite/smartslider.
   php on line 205**
 * Any clue how to fix??
 *  [hitkiller](https://wordpress.org/support/users/hitkiller/)
 * (@hitkiller)
 * [13 years ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584742)
 * i got the same error when trying to put the slider in the header via do_shortcode.
   but it’s possible to overcome this issue by using a widget. you put the slider
   in the widget and insert it in the template anywhere you like.
 *  [Thoughtlife](https://wordpress.org/support/users/thoughtlife/)
 * (@thoughtlife)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584772)
 * How do you even find the shortcode for the slider you’ve created? I have the 
   lite version plugin but there doesn’t seem to be any instruction on the dashboard
   or elsewhere that lets you know how to take the slider you’ve created and put
   it on your website.
 *  [Thoughtlife](https://wordpress.org/support/users/thoughtlife/)
 * (@thoughtlife)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584773)
 * Is it possible to use the slider as a banner on the main homepage of a website
   rather than in posts or other pages. If so, how is it done?
 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584774)
 * Hi Thoughtlife!
 * First of all sorry for my late response, if you would like to get a fast help
   please write us a support ticket on our site.
 * So if you would like to insert the Slider, you have to go to a Page or a Post
   site, where you can find the Smart Slider icon in the ‘visual’ view. Click on
   it and just choose from your existing sliders. (Of course you can add this shortcode
   everywhere.) [Insert a Slider picture.](http://www.nextendweb.com/wp-content/uploads/2013/07/insert.png)
 *  [Thoughtlife](https://wordpress.org/support/users/thoughtlife/)
 * (@thoughtlife)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584775)
 * Hi thanks, for the reply. The problem I’m having is with getting the slider into
   my site’s homepage. I can include it in pages and posts and widgets, pretty much
   everywhere except for where I really want to put it. I’d like to replace the 
   default slider which came with my theme, with the one I’ve made using the plugin(
   which is great by the way, simplest design layout I’ve been able to find, and
   really lovely looking result).
 *  [Thoughtlife](https://wordpress.org/support/users/thoughtlife/)
 * (@thoughtlife)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584777)
 * I take it there’s no way to do this then?
 *  [arashmobileboy](https://wordpress.org/support/users/arashmobileboy/)
 * (@arashmobileboy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584791)
 * You Can Solve It By This Code :
    <?php echo do_shortcode(‘[smartslider2 slider
   =”1″]’);?>`

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

The topic ‘Insert in the PHP code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextend-smart-slider-lite_51759a.
   svg)
 * [Nextend Smart Slider Lite](https://wordpress.org/plugins/nextend-smart-slider-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-smart-slider-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-smart-slider-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-smart-slider-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-smart-slider-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-smart-slider-lite/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [how](https://wordpress.org/support/topic-tag/how/)

 * 9 replies
 * 6 participants
 * Last reply from: [arashmobileboy](https://wordpress.org/support/users/arashmobileboy/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/insert-in-the-php-code/#post-3584791)
 * Status: not resolved