Title: davidlfay's Replies | WordPress.org

---

# davidlfay

  [  ](https://wordpress.org/support/users/davidlfay/)

 *   [Profile](https://wordpress.org/support/users/davidlfay/)
 *   [Topics Started](https://wordpress.org/support/users/davidlfay/topics/)
 *   [Replies Created](https://wordpress.org/support/users/davidlfay/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/davidlfay/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/davidlfay/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/davidlfay/engagements/)
 *   [Favorites](https://wordpress.org/support/users/davidlfay/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Problem pasting PHP Code ?](https://wordpress.org/support/topic/problem-pasting-php-code/)
 *  [davidlfay](https://wordpress.org/support/users/davidlfay/)
 * (@davidlfay)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/problem-pasting-php-code/#post-1850490)
 * If you want the slider to appear on the front page then you will want to post
   the PHP in index.php for your theme. Don’t post it in a loop or your slider will
   appear everytime the loop is executed.
 *     ```
       <?php get_header(); ?>
       <div id="wrapper">
       	<div id="top"><?php get_smooth_slider(); ?></div>
       	<div id="content"  class="home">
       		Lorem ipsum....
       	</div>
       	<?php get_sidebar(); ?>
       </div>
       <?php get_footer(); ?>
       ```
   

Viewing 1 replies (of 1 total)