Title: Where add slider php code?
Last modified: August 24, 2016

---

# Where add slider php code?

 *  [marczuk](https://wordpress.org/support/users/marczuk/)
 * (@marczuk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/where-add-slider-php-code/)
 * Hi,
    I’ve got php code of my slider `<?php echo do_shortcode( '[advps-slideshow
   optset="1"]' ) ?>` I want this just into homepage. Where should I put this code?
   Thanks for help _marczuk_

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

 *  [cdcampbell26](https://wordpress.org/support/users/cdcampbell26/)
 * (@cdcampbell26)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/where-add-slider-php-code/#post-6101671)
 * Hello, marczuk!
 * If you have a homepage template such as front-page.php that code can go inside
   that template.
 *  [codemovement.pk](https://wordpress.org/support/users/codemovementpk/)
 * (@codemovementpk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/where-add-slider-php-code/#post-6101674)
 * You should have homepage template, more likely front-page.php. or it can be your
   index.php inside your theme. If you are sharing same template with other pages
   then you can use <?php is_front_page(); { echo do_shortcode( ‘[advps-slideshow
   optset=”1″]’ ) } ?> OR <?php is_home(); { echo do_shortcode( ‘[advps-slideshow
   optset=”1″]’ ) } ?>
 *  Thread Starter [marczuk](https://wordpress.org/support/users/marczuk/)
 * (@marczuk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/where-add-slider-php-code/#post-6101895)
 * I don’t have front-page.php. My theme name’s Pluto.
    Where exactly in index.php
   I should put that code? I’m completly begginer in coding. My index.php looks 
   like that: [http://scr.hu/19n9/06e3f](http://scr.hu/19n9/06e3f) I tried to put
   your code codemovement in some places of that, but then whole page stops working.:/

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

The topic ‘Where add slider php code?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [marczuk](https://wordpress.org/support/users/marczuk/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/where-add-slider-php-code/#post-6101895)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
