Title: Adding shortcode to homepage???
Last modified: August 20, 2016

---

# Adding shortcode to homepage???

 *  [rpjd](https://wordpress.org/support/users/rpjd/)
 * (@rpjd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-shortcode-to-homepage/)
 * I have installed the Smooth Slider plugin, attached my posts which I can see 
   in the preview window. I tried adding this
 *     ```
       if ( function_exists( 'get_smooth_slider' ) and is_home()
       and !is_paged() ) {
        get_smooth_slider(); }
       ```
   
 * to the index.php file as outlined here:
    [http://www.clickonf5.org/4545/smooth-slider-home-page-only/](http://www.clickonf5.org/4545/smooth-slider-home-page-only/)
   but the code shows on the page, not the slider. Also, when listing pages, WordPress
   only lists addition pages, not the actual homepage, so how do or can I add the
   alternative shortcode to the homepage?

Viewing 1 replies (of 1 total)

 *  Thread Starter [rpjd](https://wordpress.org/support/users/rpjd/)
 * (@rpjd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-shortcode-to-homepage/#post-3573479)
 * Figured out the problem, the code wasn’t within php tags.
    Now I have the slider
   with all my posts underneath it. How do I remove the posts from the homepage 
   without affecting the slider?

Viewing 1 replies (of 1 total)

The topic ‘Adding shortcode to homepage???’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [rpjd](https://wordpress.org/support/users/rpjd/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/adding-shortcode-to-homepage/#post-3573479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
